summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-28 20:31:18 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-28 20:31:18 -0500
commita1db5cd0412169ffd98f44feca8a4ba7a9a201ea (patch)
tree283acd80ab5a5bfb25a7c0f4cf8571a91ab98715 /src
parent4f17393f3b2514945bf3fab0a7179ce6baf67a45 (diff)
handle differences between C89/95 and C99+
Diffstat (limited to 'src')
-rw-r--r--src/nonstd/_locale.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nonstd/_locale.h b/src/nonstd/_locale.h
index ebed8ea6..036fd836 100644
--- a/src/nonstd/_locale.h
+++ b/src/nonstd/_locale.h
@@ -127,12 +127,22 @@ static char * (__load_locale)(struct __locale_t *loc, int mask, const char *name
loc->mn.n_sign_posn = CHAR_MAX;
loc->mn.int_curr_symbol = "";
loc->mn.int_frac_digits = CHAR_MAX;
+
+ #if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
loc->mn.int_p_cs_precedes = CHAR_MAX;
loc->mn.int_n_cs_precedes = CHAR_MAX;
loc->mn.int_p_sep_by_space = CHAR_MAX;
loc->mn.int_n_sep_by_space = CHAR_MAX;
loc->mn.int_p_sign_posn = CHAR_MAX;
loc->mn.int_n_sign_posn = CHAR_MAX;
+ #else
+ loc->mn.__int_p_cs_precedes = CHAR_MAX;
+ loc->mn.__int_n_cs_precedes = CHAR_MAX;
+ loc->mn.__int_p_sep_by_space = CHAR_MAX;
+ loc->mn.__int_n_sep_by_space = CHAR_MAX;
+ loc->mn.__int_p_sign_posn = CHAR_MAX;
+ loc->mn.__int_n_sign_posn = CHAR_MAX;
+ #endif
} else {
/*
loc->mn.monetary fields;