summaryrefslogtreecommitdiff
path: root/locale.h
diff options
context:
space:
mode:
Diffstat (limited to 'locale.h')
-rw-r--r--locale.h10
1 files changed, 7 insertions, 3 deletions
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;