Move feature defines to C files
parent
09c5e9a8dd
commit
8d1067a5aa
|
@ -1,3 +1,5 @@
|
||||||
|
#define _USE_MATH_DEFINES
|
||||||
|
#define _XOPEN_SOURCE 700
|
||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
2
main.c
2
main.c
|
@ -1,3 +1,5 @@
|
||||||
|
#define _DEFAULT_SOURCE
|
||||||
|
#define _XOPEN_SOURCE 700
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
|
@ -26,8 +26,6 @@ add_project_arguments(
|
||||||
'-Wno-unused-command-line-argument',
|
'-Wno-unused-command-line-argument',
|
||||||
'-Wvla',
|
'-Wvla',
|
||||||
'-Wl,--exclude-libs=ALL',
|
'-Wl,--exclude-libs=ALL',
|
||||||
'-D_USE_MATH_DEFINES',
|
|
||||||
'-D_XOPEN_SOURCE=700',
|
|
||||||
'-DWLSUNSET_VERSION="@0@"'.format(meson.project_version()),
|
'-DWLSUNSET_VERSION="@0@"'.format(meson.project_version()),
|
||||||
],
|
],
|
||||||
language: 'c',
|
language: 'c',
|
||||||
|
|
Loading…
Reference in New Issue