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