Fix linux compilation with gcc-4.8 and higher.
This commit is contained in:
parent
2eeeb2997d
commit
85f03c4a06
|
@ -154,7 +154,7 @@ class AMXXConfig(object):
|
||||||
if (have_gcc and cxx.version >= '4.7') or (have_clang and cxx.version >= '3'):
|
if (have_gcc and cxx.version >= '4.7') or (have_clang and cxx.version >= '3'):
|
||||||
cfg.cxxflags += ['-Wno-delete-non-virtual-dtor']
|
cfg.cxxflags += ['-Wno-delete-non-virtual-dtor']
|
||||||
if have_gcc and cxx.version >= '4.8':
|
if have_gcc and cxx.version >= '4.8':
|
||||||
cfg.cflags += ['-Wno-unused-result']
|
cfg.cflags += ['-Wno-unused-result', '-Wno-error=sign-compare']
|
||||||
if have_clang:
|
if have_clang:
|
||||||
cfg.cxxflags += ['-Wno-implicit-exception-spec-mismatch']
|
cfg.cxxflags += ['-Wno-implicit-exception-spec-mismatch']
|
||||||
if cxx.version >= 'apple-clang-5.1' or cxx.version >= 'clang-3.4':
|
if cxx.version >= 'apple-clang-5.1' or cxx.version >= 'clang-3.4':
|
||||||
|
@ -167,6 +167,7 @@ class AMXXConfig(object):
|
||||||
|
|
||||||
if have_gcc:
|
if have_gcc:
|
||||||
cfg.cflags += ['-Wno-parentheses']
|
cfg.cflags += ['-Wno-parentheses']
|
||||||
|
cfg.c_only_flags += ['-std=c99']
|
||||||
elif have_clang:
|
elif have_clang:
|
||||||
cfg.cflags += ['-Wno-logical-op-parentheses']
|
cfg.cflags += ['-Wno-logical-op-parentheses']
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
#include "MemoryUtils.h"
|
#include "MemoryUtils.h"
|
||||||
#include <stdio.h> // sscanf
|
#include <stdio.h> // sscanf
|
||||||
|
#include <stdarg.h> // va_start, etc.
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user