diff options
Diffstat (limited to 'missing/langinfo.c')
| -rw-r--r-- | missing/langinfo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/missing/langinfo.c b/missing/langinfo.c index 04633c1b90..0274a378f5 100644 --- a/missing/langinfo.c +++ b/missing/langinfo.c @@ -37,7 +37,7 @@ #include <string.h> #if defined _WIN32 || defined __CYGWIN__ #include <windows.h> -#if defined _WIN32 +#if defined _WIN32 && !defined strncasecmp #define strncasecmp strnicmp #endif #endif @@ -56,7 +56,7 @@ #endif #define digit(x) ((x) >= '0' && (x) <= '9') -#define strstart(s, n) (strncasecmp(s, n, strlen(n)) == 0) +#define strstart(s, n) (strncasecmp((s), (n), strlen(n)) == 0) static char buf[16]; @@ -65,7 +65,7 @@ nl_langinfo_codeset(void) { const char *l, *p; int n; - + if (((l = getenv("LC_ALL")) && *l) || ((l = getenv("LC_CTYPE")) && *l) || ((l = getenv("LANG")) && *l)) { @@ -140,7 +140,7 @@ char *nl_langinfo(nl_item item) #ifdef TEST #include <stdio.h> -int main() +int main(void) { printf("%s\n", nl_langinfo(CODESET)); return 0; |
