Move feature defines to C files

master
Kenny Levinsen 2022-05-04 10:58:42 +02:00
parent 09c5e9a8dd
commit 8d1067a5aa
4 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,5 @@
#define _USE_MATH_DEFINES
#define _XOPEN_SOURCE 700
#define _POSIX_C_SOURCE 200809L
#include <math.h>
#include <errno.h>

2
main.c
View File

@ -1,3 +1,5 @@
#define _DEFAULT_SOURCE
#define _XOPEN_SOURCE 700
#include <assert.h>
#include <errno.h>
#include <fcntl.h>

View File

@ -26,8 +26,6 @@ add_project_arguments(
'-Wno-unused-command-line-argument',
'-Wvla',
'-Wl,--exclude-libs=ALL',
'-D_USE_MATH_DEFINES',
'-D_XOPEN_SOURCE=700',
'-DWLSUNSET_VERSION="@0@"'.format(meson.project_version()),
],
language: 'c',

View File

@ -1,3 +1,4 @@
#define _XOPEN_SOURCE 700
#include <stdlib.h>
#include <string.h>