summaryrefslogtreecommitdiff
path: root/tests/misc
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2016-01-01 21:35:36 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2016-01-01 21:35:36 +0100
commitfddf5d0068a8a008ea0f6baf09747083507f0ef2 (patch)
treef28ff1090f4e178c9287c58be2d4c77a26954c65 /tests/misc
parent8db41666222273da2a1998ffbaa081d78471ecc5 (diff)
downloadgmp-fddf5d0068a8a008ea0f6baf09747083507f0ef2.tar.gz
tests/: Do not redefine localeconv when mingw is used.
Diffstat (limited to 'tests/misc')
-rw-r--r--tests/misc/t-locale.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/misc/t-locale.c b/tests/misc/t-locale.c
index 252fc2bd6..61c8cb73d 100644
--- a/tests/misc/t-locale.c
+++ b/tests/misc/t-locale.c
@@ -41,18 +41,10 @@ the GNU MP Library test suite. If not, see https://www.gnu.org/licenses/. */
#include "gmp-impl.h"
#include "tests.h"
-#ifdef __MINGW32__
-int
-main (void)
-{
- exit (0);
-}
-#else
-
const char *decimal_point;
/* Replace the libc localeconv with one we can manipulate. */
-#if HAVE_LOCALECONV
+#if HAVE_LOCALECONV && ! defined __MINGW32__
struct lconv *
localeconv (void)
#if defined __cplusplus && defined __GLIBC__
@@ -204,4 +196,3 @@ main (void)
tests_memory_end ();
exit (0);
}
-#endif