diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-03-01 18:52:33 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-03-01 18:52:33 -0500 |
commit | d5270660952c2cd0456a83a09d55d721798b6e6e (patch) | |
tree | 70d65f75c3bfcbb7668904794803b0191a8dd9e6 /locale.c | |
parent | cf342ad275c05edf177206b8931ebca8890f591a (diff) |
use defs for locale tests
Diffstat (limited to 'locale.c')
-rw-r--r-- | locale.c | 32 |
1 files changed, 1 insertions, 31 deletions
@@ -2,41 +2,11 @@ #include <limits.h> #include "test.h" -#ifndef LC_ALL -#error LC_ALL not defined -#endif - -#ifndef LC_COLLATE -#error LC_COLLATE not defined -#endif - -#ifndef LC_CTYPE -#error LC_CTYPE not defined -#endif - -#ifndef LC_MONETARY -#error LC_MONETARY not defined -#endif - -#ifndef LC_NUMERIC -#error LC_NUMERIC not defined -#endif - -#ifndef LC_TIME -#error LC_TIME not defined -#endif +#include "locale.d" void test_locale_h(void) { struct lconv *lc; - int locale_categories[] = { - LC_ALL, - LC_COLLATE, - LC_CTYPE, - LC_MONETARY, - LC_NUMERIC, - LC_TIME, - }; testing_header("locale.h"); |