summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--log.c1
-rw-r--r--main.c1
-rw-r--r--meson.build2
-rw-r--r--pool-buffer.c1
4 files changed, 2 insertions, 3 deletions
diff --git a/log.c b/log.c
index fc7b7d9..3c08595 100644
--- a/log.c
+++ b/log.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 199506L
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
diff --git a/main.c b/main.c
index bf02516..9dcf6b7 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include <ctype.h>
#include <getopt.h>
diff --git a/meson.build b/meson.build
index d11a754..8b005da 100644
--- a/meson.build
+++ b/meson.build
@@ -13,6 +13,8 @@ project(
cc = meson.get_compiler('c')
+add_project_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c')
+
add_project_arguments(cc.get_supported_arguments([
'-Wno-unused-parameter',
'-Wno-unused-result',
diff --git a/pool-buffer.c b/pool-buffer.c
index ec3927b..9872ec5 100644
--- a/pool-buffer.c
+++ b/pool-buffer.c
@@ -1,4 +1,3 @@
-#define _POSIX_C_SOURCE 200809
#include <assert.h>
#include <cairo.h>
#include <errno.h>