summaryrefslogtreecommitdiffstats
path: root/gettext-tools/tests/plural-1-prg.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-12-22 01:20:57 +0100
committerBruno Haible <bruno@clisp.org>2009-12-26 04:13:31 +0100
commitfc7656340d375271c832dee2df37202b71f6d719 (patch)
tree68fed9ad312381f22e3b9ab4485ff5d3c29dc399 /gettext-tools/tests/plural-1-prg.c
parenteeaeaee0f0d62a136eaede75d356c52a029219f7 (diff)
downloadexternal_gettext-fc7656340d375271c832dee2df37202b71f6d719.zip
external_gettext-fc7656340d375271c832dee2df37202b71f6d719.tar.gz
external_gettext-fc7656340d375271c832dee2df37202b71f6d719.tar.bz2
Override setlocale() and newlocale() on MacOS X and Windows platforms.
Diffstat (limited to 'gettext-tools/tests/plural-1-prg.c')
-rw-r--r--gettext-tools/tests/plural-1-prg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gettext-tools/tests/plural-1-prg.c b/gettext-tools/tests/plural-1-prg.c
index 2bbd315..88e2467 100644
--- a/gettext-tools/tests/plural-1-prg.c
+++ b/gettext-tools/tests/plural-1-prg.c
@@ -1,5 +1,5 @@
/* Test program, used by the plural-1 test.
- Copyright (C) 2001-2002 Free Software Foundation, Inc.
+ Copyright (C) 2001-2002, 2009 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -27,6 +27,11 @@
#undef _LIBINTL_H
#include "libgnuintl.h"
+/* Disable the override of setlocale that libgnuintl.h activates on MacOS X
+ and Windows. This test relies on the fake setlocale function in
+ setlocale.c. */
+#undef setlocale
+
int
main (int argc, char *argv[])
{