if check_header(env, 'sys/shm.h'):
cppdefines += ['HAVE_SYS_SHM_H']
+ if check_functions(env, ['strtok_r']):
+ cppdefines += ['HAVE_STRTOK_R']
+
#FIXME: we should really be checking for the major()/minor()
# functions/macros in these headers, but check_functions()'s
# SConf.CheckFunc() doesn't seem to support macros.
#'_UNICODE',
#'UNICODE',
# http://msdn.microsoft.com/en-us/library/aa383745.aspx
- ('_WIN32_WINNT', '0x0601'),
- ('WINVER', '0x0601'),
+ ('_WIN32_WINNT', '0x0A00'),
+ ('WINVER', '0x0A00'),
]
if gcc_compat:
cppdefines += [('__MSVCRT_VERSION__', '0x0700')]
+ cppdefines += ['_USE_MATH_DEFINES']
if msvc:
cppdefines += [
'VC_EXTRALEAN',
'-Werror=missing-prototypes',
'-Werror=return-type',
'-Werror=incompatible-pointer-types',
- '-std=gnu99',
]
+ if platform == 'darwin' and host_platform.mac_ver()[0] >= '10.15':
+ cflags += ['-std=gnu11']
+ else:
+ cflags += ['-std=gnu99']
+ cxxflags += ['-std=c++14']
if icc:
cflags += [
'-std=gnu99',