Skip to content

Commit

Permalink
Fix duplicate feature test macros
Browse files Browse the repository at this point in the history
  • Loading branch information
notpeelz committed Jun 26, 2024
1 parent 2431609 commit cfd4bf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ foreach define: set_defines
config_data.set_quoted(define[0], define[1])
endforeach

# Globally define_GNU_SOURCE and therefore enable the GNU extensions
config_data.set('_GNU_SOURCE', true)

# functions
check_functions = [
'clearenv',
Expand All @@ -96,7 +93,9 @@ foreach func: check_functions
config_data.set('HAVE_' + func.to_upper(), cc.has_function(func))
endforeach

compiler_common_flags = []
compiler_common_flags = [
'-D_GNU_SOURCE',
]
compiler_c_flags = [
# FIXME: this should go as 'c_std=c99' in project's default_options.
# https://github.com/mesonbuild/meson/issues/1889
Expand Down
2 changes: 0 additions & 2 deletions src/polkitbackend/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ c_flags = [
'-D_POLKIT_BACKEND_COMPILATION',
'-DPACKAGE_DATA_DIR="@0@"'.format(pk_prefix / pk_datadir),
'-DPACKAGE_SYSCONF_DIR="@0@"'.format(pk_prefix / pk_sysconfdir),
'-D_XOPEN_SOURCE=700',
'-D_GNU_SOURCE=1',
]

if js_engine == 'duktape'
Expand Down

0 comments on commit cfd4bf3

Please sign in to comment.