Make sure setlocale() is available.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 3 Sep 2002 20:42:05 +0000 (20:42 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 3 Sep 2002 20:42:05 +0000 (20:42 +0000)
lib/gettext.h

index ad29e0a..ba92769 100644 (file)
@@ -24,6 +24,7 @@
 
 /* Get declarations of GNU message catalog functions.  */
 # include <libintl.h>
 
 /* Get declarations of GNU message catalog functions.  */
 # include <libintl.h>
+# include <locale.h>
 
 /* Shorthand notation */
 
 
 /* Shorthand notation */
 
@@ -60,6 +61,7 @@
 # define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
 
 # define _(Text) Text
 # define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset))
 
 # define _(Text) Text
+# define setlocale(Category, Locale) ((chonst char *) (Locale))
 
 #endif
 
 
 #endif