Skip to content

Commit

Permalink
Fix several preprocessor directives
Browse files Browse the repository at this point in the history
Committed as obvious.

     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.

François
  • Loading branch information
Dums35 authored and ouuleilei-bot committed Jul 30, 2023
1 parent c2d62cd commit cb0f31e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libstdc++-v3/src/c++11/compatibility-ldbl-facets-aliases.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion libstdc++-v3/src/c++11/locale-inst-monetary.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion libstdc++-v3/src/c++11/locale-inst-numeric.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cb0f31e

Please sign in to comment.