diff options
author | Jakob Kaivo <jkk@ung.org> | 2022-04-26 10:59:50 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2022-04-26 10:59:50 -0400 |
commit | d29196a493b0d63ea543af2cab1db062ae39fce2 (patch) | |
tree | dbbbbfff7e201a36f98c977e2405fe6a00d8e35d /locale.h | |
parent | ac27402efa3cb4d2e433a2a2f51e9ac34accf084 (diff) |
use C2x style header versioning for include guards
Diffstat (limited to 'locale.h')
-rw-r--r-- | locale.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,9 @@ -#ifndef __LOCALE_H__ -#define __LOCALE_H__ +#ifndef __STDC_VERSION_LOCALE_H__ +#if defined __STDC_VERSION__ +#define __STDC_VERSION_LOCALE_H__ __STDC_VERSION__ +#else +#define __STDC_VERSION_LOCALE_H__ 1 +#endif /* UNG's Not GNU @@ -63,7 +67,7 @@ struct lconv { char n_sep_by_space; char p_sign_posn; char n_sign_posn; - #if __STDC_VERSION__ >= 199901L + #if __STDC_VERSION_LOCALE_H__ >= 199901L char int_p_cs_precedes; char int_p_sep_by_space; char int_n_cs_precedes; |