aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/wavegen.c2
-rw-r--r--wscript1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/wavegen.c b/src/wavegen.c
index 740ed3c..c1a2137 100644
--- a/src/wavegen.c
+++ b/src/wavegen.c
@@ -17,7 +17,7 @@
along with this software. If not, see <http://www.gnu.org/licenses/>.
*/
-#define _GNU_SOURCE 1
+#define _POSIX_C_SOURCE 200809L // strdup
#include <stdlib.h>
#include <stdio.h>
diff --git a/wscript b/wscript
index e1e5191..e9cd1cd 100644
--- a/wscript
+++ b/wscript
@@ -33,7 +33,6 @@ def configure(conf):
mandatory = False)
conf.env.append_unique('CFLAGS', '-std=c99')
- conf.env.append_unique('CFLAGS', '-D_XOPEN_SOURCE')
conf.write_config_header('config.h', remove=False)