Skip to content
Snippets Groups Projects
Commit 1a096160 authored by Ludovico de Nittis's avatar Ludovico de Nittis
Browse files

Add C argument `-D_GNU_SOURCE` for the whole project


`-D_GNU_SOURCE` was required by a lot of components, so it's easier to
set it by default for the entire project.

Signed-off-by: default avatarLudovico de Nittis <ludovico.denittis@collabora.com>
parent 47a4c9e9
No related branches found
No related tags found
1 merge request!27Enhance examples/system-info.c to show libraries and uinput capabilities
Pipeline #1342 failed
...@@ -25,9 +25,6 @@ executable( ...@@ -25,9 +25,6 @@ executable(
'steam-runtime-system-info', 'steam-runtime-system-info',
'system-info.c', 'system-info.c',
dependencies : [glib, libsteamrt_dep, json_glib], dependencies : [glib, libsteamrt_dep, json_glib],
c_args : [
'-D_GNU_SOURCE',
],
install : true, install : true,
) )
......
...@@ -69,9 +69,6 @@ ...@@ -69,9 +69,6 @@
* [3] http://git.compiz.org/fusion/misc/compiz-manager/tree/compiz-manager * [3] http://git.compiz.org/fusion/misc/compiz-manager/tree/compiz-manager
*/ */
/* for strcasestr */
#define _GNU_SOURCE
#include <ctype.h> #include <ctype.h>
#include <locale.h> #include <locale.h>
#include <stdio.h> #include <stdio.h>
......
...@@ -23,9 +23,6 @@ ...@@ -23,9 +23,6 @@
* Cosimo Cecchi <cosimo@endlessm.com> * Cosimo Cecchi <cosimo@endlessm.com>
*/ */
/* for strcasestr */
#define _GNU_SOURCE
#include <locale.h> #include <locale.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -35,9 +35,6 @@ executable( ...@@ -35,9 +35,6 @@ executable(
multiarch + '-inspect-library', multiarch + '-inspect-library',
'inspect-library.c', 'inspect-library.c',
dependencies : [libdl], dependencies : [libdl],
c_args : [
'-D_GNU_SOURCE',
],
install : true, install : true,
install_dir : join_paths( install_dir : join_paths(
get_option('libexecdir'), get_option('libexecdir'),
......
...@@ -91,6 +91,8 @@ endforeach ...@@ -91,6 +91,8 @@ endforeach
add_project_arguments(['-std=c99'], language : 'c') add_project_arguments(['-std=c99'], language : 'c')
add_project_arguments(['-D_GNU_SOURCE'], language : 'c')
glib = dependency( glib = dependency(
'glib-2.0', 'glib-2.0',
version : '>= 2.32', version : '>= 2.32',
......
...@@ -56,7 +56,6 @@ libsteamrt = library( ...@@ -56,7 +56,6 @@ libsteamrt = library(
c_args : [ c_args : [
'-DG_LOG_DOMAIN="' + meson.project_name() + '"', '-DG_LOG_DOMAIN="' + meson.project_name() + '"',
'-D_SRT_COMPILATION', '-D_SRT_COMPILATION',
'-D_GNU_SOURCE',
'-D_SRT_SONAME="libsteam-runtime-tools-' + api_major + '.so.' + abi_major + '"', '-D_SRT_SONAME="libsteam-runtime-tools-' + api_major + '.so.' + abi_major + '"',
'-D_SRT_MULTIARCH="' + multiarch + '"', '-D_SRT_MULTIARCH="' + multiarch + '"',
'-D_SRT_API_MAJOR="' + api_major + '"', '-D_SRT_API_MAJOR="' + api_major + '"',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment