Commit a61c95e2 authored by Niklas Haas's avatar Niklas Haas

meson: update build options

Fixes compilation issues on windows, and also moves some stuff to the
global file and also makes a few warnings into critical errors.
parent c1c6283d
......@@ -6,12 +6,15 @@ version = majorver + '.' + apiver + '.' + fixver
# Build options mostly taken from mpv
build_opts = [
'-D_ISOC99_SOURCE', '-D_GNU_SOURCE',
'-fvisibility=hidden',
'-D_ISOC99_SOURCE', '-D_GNU_SOURCE', '-D_XOPEN_SOURCE=700',
'-U__STRICT_ANSI__', '-fvisibility=hidden',
# Warnings
'-Wall', '-Wundef', '-Wmissing-prototypes', '-Wshadow', '-Wparentheses',
'-Wpointer-arith', '-Wno-pointer-sign',
# Warnings to treat as errors
'-Werror=implicit-function-declaration', '-Werror=incompatible-pointer-types',
]
cc = meson.get_compiler('c')
......
......@@ -15,7 +15,6 @@
* License along with libplacebo. If not, see <http://www.gnu.org/licenses/>.
*/
#define _XOPEN_SOURCE 700
#include <stdlib.h>
#include <locale.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment