lib: remove macro definition _POSIX_C_SOURCE
authorJean Privat <jean@pryen.org>
Thu, 5 Jan 2012 01:28:20 +0000 (20:28 -0500)
committerJean Privat <jean@pryen.org>
Thu, 5 Jan 2012 01:28:20 +0000 (20:28 -0500)
They where initially added to please --pedantic but cause some ugly portability issues.

Signed-off-by: Jean Privat <jean@pryen.org>

c_src/environ_nit.h
c_src/exec_nit.h
lib/standard/environ_nit.h
lib/standard/exec_nit.h

index 221286c..18478cf 100644 (file)
@@ -13,7 +13,6 @@
  * another product.
  */
 
-#define _POSIX_C_SOURCE 1
 #include <stdlib.h>
 
 #define string_NativeString_NativeString_get_environ_0(self) getenv(self)
index a0c8352..93caf0c 100644 (file)
@@ -14,7 +14,6 @@
  * another product.
  */
 
-#define _POSIX_C_SOURCE 1
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/wait.h>
index 10633ef..9fdc203 100644 (file)
@@ -13,7 +13,6 @@
  * another product.
  */
 
-#define _POSIX_C_SOURCE 1
 #include <stdlib.h>
 
 #define string_NativeString_NativeString_get_environ_0(self) getenv(self)
index ec3efd4..7c7659d 100644 (file)
@@ -14,7 +14,6 @@
  * another product.
  */
 
-#define _POSIX_C_SOURCE 1
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/wait.h>