summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2021-07-09 16:33:06 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2021-07-28 13:19:02 +0300
commit737985be30b1b919315ae4c77be403a63d58f000 (patch)
tree72ad47a0cc5ba331c9b09dcdb65f9ee0f90d2b0c
parent8a8133fe9c4fc1628a101b5ca55375c341b1bfe9 (diff)
meson: set -D_GNU_SOURCE in the project arguments, remove other definitions
Signed-off-by: George Kiagiadakis <george.kiagiadakis@collabora.com>
-rw-r--r--lib/meson.build5
-rw-r--r--meson.build1
-rw-r--r--src/meson.build5
-rw-r--r--tests/client-server.c1
-rw-r--r--tests/sender-receiver.c1
5 files changed, 1 insertions, 12 deletions
diff --git a/lib/meson.build b/lib/meson.build
index 7b8a21b..787bc4f 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -27,11 +27,6 @@ install_headers(icipc_lib_headers,
icipc_lib = library('icipc-' + icipc_api_version,
icipc_lib_sources,
- c_args : [
- '-D_GNU_SOURCE',
- '-DG_LOG_USE_STRUCTURED',
- '-DG_LOG_DOMAIN="icipc"',
- ],
install: true,
dependencies : [threads_dep],
soversion: icipc_so_version,
diff --git a/meson.build b/meson.build
index 246196b..c4556be 100644
--- a/meson.build
+++ b/meson.build
@@ -32,6 +32,7 @@ common_flags = [
'-Wunused-result',
]
add_project_arguments(cc.get_supported_arguments(common_flags), language: 'c')
+add_project_arguments('-D_GNU_SOURCE', language: 'c')
subdir('lib')
subdir('src')
diff --git a/src/meson.build b/src/meson.build
index e150678..b9a198a 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -1,9 +1,4 @@
executable('icipc-client',
'icipc-client.c',
- c_args : [
- '-D_GNU_SOURCE',
- '-DG_LOG_USE_STRUCTURED',
- '-DG_LOG_DOMAIN="icipc-client"',
- ],
dependencies : [icipc_dep, threads_dep],
)
diff --git a/tests/client-server.c b/tests/client-server.c
index f6e8fa5..1345ca9 100644
--- a/tests/client-server.c
+++ b/tests/client-server.c
@@ -6,7 +6,6 @@
* SPDX-License-Identifier: MIT
*/
-#define _GNU_SOURCE
#include "test.h"
#include "data.h"
#include <icipc.h>
diff --git a/tests/sender-receiver.c b/tests/sender-receiver.c
index 9858ef7..0b02a9c 100644
--- a/tests/sender-receiver.c
+++ b/tests/sender-receiver.c
@@ -6,7 +6,6 @@
* SPDX-License-Identifier: MIT
*/
-#define _GNU_SOURCE
#include "test.h"
#include <icipc.h>
#include <unistd.h>