From d29196a493b0d63ea543af2cab1db062ae39fce2 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 26 Apr 2022 10:59:50 -0400 Subject: use C2x style header versioning for include guards --- locale.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'locale.h') diff --git a/locale.h b/locale.h index 4fb8f60..5a6644b 100644 --- a/locale.h +++ b/locale.h @@ -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; -- cgit v1.2.1