libstdc++: Fix several preprocessor directives

A wrong usage of #define in place of a #error seems to have been replicated
at different places in source files.

libstdc++-v3/ChangeLog:

	* src/c++11/compatibility-ldbl-facets-aliases.h: Replace #define with
	proper #error.
	* src/c++11/locale-inst-monetary.h: Likewise.
	* src/c++11/locale-inst-numeric.h: Likewise.
This commit is contained in:
François Dumont
2023-07-28 19:17:03 +02:00
parent 861962eee1
commit c9434ea40e
3 changed files with 4 additions and 4 deletions

View File

@@ -23,11 +23,11 @@
// <http://www.gnu.org/licenses/>.
#ifndef C
#define "This file should not be compiled directly, only included"
# error "This file should not be compiled directly, only included"
#endif
#ifndef _GLIBCXX_LONG_DOUBLE_COMPAT
#define "This file should only be used for _GLIBCXX_LONG_DOUBLE_COMPAT builds"
# error "This file should only be used for _GLIBCXX_LONG_DOUBLE_COMPAT builds"
#endif
// XXX GLIBCXX_ABI Deprecated

View File

@@ -23,7 +23,7 @@
// <http://www.gnu.org/licenses/>.
#ifndef C
#define "This file should not be compiled directly, only included"
# error "This file should not be compiled directly, only included"
#endif
#include "facet_inst_macros.h"

View File

@@ -23,7 +23,7 @@
// <http://www.gnu.org/licenses/>.
#ifndef C
#define "This file should not be compiled directly, only included"
# error "This file should not be compiled directly, only included"
#endif
#include "facet_inst_macros.h"