mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 11:42:10 +01:00
build: Define _QNX_SOURCE on QNX
This is in order to activate all library features.
This commit is contained in:
parent
57768b4704
commit
5de22998d5
@ -98,6 +98,10 @@ build_tests = get_option('tests') and (not meson.is_cross_build() or (meson.is_c
|
||||
|
||||
add_project_arguments('-D_GNU_SOURCE', language: 'c')
|
||||
|
||||
if host_system == 'qnx'
|
||||
add_project_arguments('-D_QNX_SOURCE', language: 'c')
|
||||
endif
|
||||
|
||||
# Disable strict aliasing;
|
||||
# see https://bugzilla.gnome.org/show_bug.cgi?id=791622
|
||||
if cc.has_argument('-fno-strict-aliasing')
|
||||
|
Loading…
x
Reference in New Issue
Block a user