Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
95769eb87b |
+8
-8
@@ -39,25 +39,23 @@ src = [
|
||||
'src/util/tick.c',
|
||||
]
|
||||
|
||||
conf = configuration_data()
|
||||
|
||||
if host_machine.system() == 'windows'
|
||||
src += [
|
||||
'src/sys/win/file.c',
|
||||
'src/sys/win/process.c',
|
||||
]
|
||||
conf.set('_WIN32_WINNT', '0x0600')
|
||||
conf.set('WINVER', '0x0600')
|
||||
add_project_arguments('-D_WIN32_WINNT=0x0600', language: 'c')
|
||||
add_project_arguments('-DWINVER=0x0600', language: 'c')
|
||||
else
|
||||
src += [
|
||||
'src/sys/unix/file.c',
|
||||
'src/sys/unix/process.c',
|
||||
]
|
||||
conf.set('_POSIX_C_SOURCE', '200809L')
|
||||
conf.set('_XOPEN_SOURCE', '700')
|
||||
conf.set('_GNU_SOURCE', true)
|
||||
add_project_arguments('-D_POSIX_C_SOURCE=200809L', language: 'c')
|
||||
add_project_arguments('-D_XOPEN_SOURCE=700', language: 'c')
|
||||
add_project_arguments('-D_GNU_SOURCE', language: 'c')
|
||||
if host_machine.system() == 'darwin'
|
||||
conf.set('_DARWIN_C_SOURCE', true)
|
||||
add_project_arguments('-D_DARWIN_C_SOURCE', language: 'c')
|
||||
endif
|
||||
endif
|
||||
|
||||
@@ -138,6 +136,8 @@ if host_machine.system() == 'windows'
|
||||
dependencies += cc.find_library('ws2_32')
|
||||
endif
|
||||
|
||||
conf = configuration_data()
|
||||
|
||||
foreach f : check_functions
|
||||
if cc.has_function(f)
|
||||
define = 'HAVE_' + f.underscorify().to_upper()
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#ifndef COMPAT_H
|
||||
#define COMPAT_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <libavformat/version.h>
|
||||
#include <SDL2/SDL_version.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user