define _XOPEN_SOURCE, fix #36 (again)
authormrtout <mrtout@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 18 Mar 2006 08:20:15 +0000 (08:20 +0000)
committermrtout <mrtout@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 18 Mar 2006 08:20:15 +0000 (08:20 +0000)
git-svn-id: https://s.snth.net/svn/neverball/trunk@351 78b8d119-cf0a-0410-b17c-f493084dd1d7

share/i18n.c

index 2e3f23c..b4833af 100644 (file)
  * General Public License for more details.
  */
 
+/* The following declaration is needed to have the putenv function 
+ * http://www.gnu.org/software/libc/manual/html_node/Environment-Access.html 
+ */
+#define _XOPEN_SOURCE 1
+
 #include <string.h>
 #include <locale.h>
 #include <stdlib.h>
 #include "i18n.h"
 
-/* predeclare the POSIX putenv function, I do not know why but is not declared */
-int putenv(char *string);
-
 const char * gettextdbg(const char * c)
 {
        char * c2 = gettext(c);