diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2023-07-28 19:17:03 +0200 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2023-07-30 15:52:00 +0200 |
commit | c9434ea40e20584a44a0b6fc8659ee983d5f2dd2 (patch) | |
tree | 09f32928a0809042fd017df808c752e18762935d | |
parent | 861962eee1e7cefa163009941ee751288c08edef (diff) | |
download | gcc-c9434ea40e20584a44a0b6fc8659ee983d5f2dd2.zip gcc-c9434ea40e20584a44a0b6fc8659ee983d5f2dd2.tar.gz gcc-c9434ea40e20584a44a0b6fc8659ee983d5f2dd2.tar.bz2 |
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.
-rw-r--r-- | libstdc++-v3/src/c++11/compatibility-ldbl-facets-aliases.h | 4 | ||||
-rw-r--r-- | libstdc++-v3/src/c++11/locale-inst-monetary.h | 2 | ||||
-rw-r--r-- | libstdc++-v3/src/c++11/locale-inst-numeric.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/src/c++11/compatibility-ldbl-facets-aliases.h b/libstdc++-v3/src/c++11/compatibility-ldbl-facets-aliases.h index 70c9342..faf8221 100644 --- a/libstdc++-v3/src/c++11/compatibility-ldbl-facets-aliases.h +++ b/libstdc++-v3/src/c++11/compatibility-ldbl-facets-aliases.h @@ -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 diff --git a/libstdc++-v3/src/c++11/locale-inst-monetary.h b/libstdc++-v3/src/c++11/locale-inst-monetary.h index d8fecf2..954de1f 100644 --- a/libstdc++-v3/src/c++11/locale-inst-monetary.h +++ b/libstdc++-v3/src/c++11/locale-inst-monetary.h @@ -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" diff --git a/libstdc++-v3/src/c++11/locale-inst-numeric.h b/libstdc++-v3/src/c++11/locale-inst-numeric.h index c77ee9e..b917fe5 100644 --- a/libstdc++-v3/src/c++11/locale-inst-numeric.h +++ b/libstdc++-v3/src/c++11/locale-inst-numeric.h @@ -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" |