diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/c-ctype.h | 3 | ||||
| -rw-r--r-- | lib/sig2str.h | 8 | ||||
| -rw-r--r-- | lib/verify.h | 4 |
3 files changed, 13 insertions, 2 deletions
diff --git a/lib/c-ctype.h b/lib/c-ctype.h index 3a66440ae9e..ad589b5c209 100644 --- a/lib/c-ctype.h +++ b/lib/c-ctype.h | |||
| @@ -136,7 +136,8 @@ extern int c_tolower (int c) _GL_ATTRIBUTE_CONST; | |||
| 136 | extern int c_toupper (int c) _GL_ATTRIBUTE_CONST; | 136 | extern int c_toupper (int c) _GL_ATTRIBUTE_CONST; |
| 137 | 137 | ||
| 138 | 138 | ||
| 139 | #if defined __GNUC__ && defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ && !defined NO_C_CTYPE_MACROS | 139 | #if (defined __GNUC__ && !defined __STRICT_ANSI__ && defined __OPTIMIZE__ \ |
| 140 | && !defined __OPTIMIZE_SIZE__ && !defined NO_C_CTYPE_MACROS) | ||
| 140 | 141 | ||
| 141 | /* ASCII optimizations. */ | 142 | /* ASCII optimizations. */ |
| 142 | 143 | ||
diff --git a/lib/sig2str.h b/lib/sig2str.h index d16be98c076..df6bfd39e3d 100644 --- a/lib/sig2str.h +++ b/lib/sig2str.h | |||
| @@ -27,9 +27,17 @@ | |||
| 27 | /* Size of a buffer needed to hold a signal name like "HUP". */ | 27 | /* Size of a buffer needed to hold a signal name like "HUP". */ |
| 28 | # define SIG2STR_MAX (sizeof "SIGRTMAX" + INT_STRLEN_BOUND (int) - 1) | 28 | # define SIG2STR_MAX (sizeof "SIGRTMAX" + INT_STRLEN_BOUND (int) - 1) |
| 29 | 29 | ||
| 30 | #ifdef __cplusplus | ||
| 31 | extern "C" { | ||
| 32 | #endif | ||
| 33 | |||
| 30 | int sig2str (int, char *); | 34 | int sig2str (int, char *); |
| 31 | int str2sig (char const *, int *); | 35 | int str2sig (char const *, int *); |
| 32 | 36 | ||
| 37 | #ifdef __cplusplus | ||
| 38 | } | ||
| 39 | #endif | ||
| 40 | |||
| 33 | #endif | 41 | #endif |
| 34 | 42 | ||
| 35 | /* An upper bound on signal numbers allowed by the system. */ | 43 | /* An upper bound on signal numbers allowed by the system. */ |
diff --git a/lib/verify.h b/lib/verify.h index cb8e90b5427..03492efcd3f 100644 --- a/lib/verify.h +++ b/lib/verify.h | |||
| @@ -31,7 +31,9 @@ | |||
| 31 | Use this only with GCC. If we were willing to slow 'configure' | 31 | Use this only with GCC. If we were willing to slow 'configure' |
| 32 | down we could also use it with other compilers, but since this | 32 | down we could also use it with other compilers, but since this |
| 33 | affects only the quality of diagnostics, why bother? */ | 33 | affects only the quality of diagnostics, why bother? */ |
| 34 | # if (4 < __GNUC__ || (__GNUC__ == 4 && 6 <= __GNUC_MINOR__)) && !defined __cplusplus | 34 | # if (4 < __GNUC__ + (6 <= __GNUC_MINOR__) \ |
| 35 | && (201112L <= __STDC_VERSION__ || !defined __STRICT_ANSI__) \ | ||
| 36 | && !defined __cplusplus) | ||
| 35 | # define _GL_HAVE__STATIC_ASSERT 1 | 37 | # define _GL_HAVE__STATIC_ASSERT 1 |
| 36 | # endif | 38 | # endif |
| 37 | /* The condition (99 < __GNUC__) is temporary, until we know about the | 39 | /* The condition (99 < __GNUC__) is temporary, until we know about the |