diff options
author | Magnus Hagander <magnus@hagander.net> | 2009-01-27 12:45:09 +0000 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2009-01-27 12:45:09 +0000 |
commit | 3a8ec880dc4a19c1d73dd89a6c014ac84477bf92 (patch) | |
tree | 4aad6f534a75c782d96240bb039fbad3fe7fa956 | |
parent | 5fe3da927b2857761f9206d9fc597cf5321d9638 (diff) | |
download | postgresql-3a8ec880dc4a19c1d73dd89a6c014ac84477bf92.tar.gz postgresql-3a8ec880dc4a19c1d73dd89a6c014ac84477bf92.zip |
Silence compiler warnings in new win32 locale code
when building on mingw.
ITAGAKI Takahiro
-rw-r--r-- | src/backend/utils/adt/pg_locale.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index ee283dd3bb0..a46e1572840 100644 --- a/src/backend/utils/adt/pg_locale.c +++ b/src/backend/utils/adt/pg_locale.c @@ -4,7 +4,7 @@ * * Portions Copyright (c) 2002-2009, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/backend/utils/adt/pg_locale.c,v 1.47 2009/01/21 12:45:06 mha Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/pg_locale.c,v 1.48 2009/01/27 12:45:09 mha Exp $ * *----------------------------------------------------------------------- */ @@ -92,7 +92,7 @@ static char lc_monetary_envbuf[LC_ENV_BUFSIZE]; static char lc_numeric_envbuf[LC_ENV_BUFSIZE]; static char lc_time_envbuf[LC_ENV_BUFSIZE]; -#ifdef WIN32 +#if defined(WIN32) && defined(LC_MESSAGES) static char *IsoLocaleName(const char *); /* MSVC specific */ #endif @@ -158,7 +158,7 @@ pg_perm_setlocale(int category, const char *locale) #ifdef WIN32 result = IsoLocaleName(locale); if (result == NULL) - result = locale; + result = (char *) locale; #endif /* WIN32 */ break; #endif /* LC_MESSAGES */ @@ -601,7 +601,7 @@ cache_locale_time(void) } -#ifdef WIN32 +#if defined(WIN32) && defined(LC_MESSAGES) /* * Convert Windows locale name to the ISO formatted one * if possible. @@ -647,5 +647,5 @@ char *IsoLocaleName(const char *winlocname) return NULL; /* Not supported on this version of msvc/mingw */ #endif /* _MSC_VER >= 1400 */ } -#endif /* WIN32 */ +#endif /* WIN32 && LC_MESSAGES */ |