proper fix (nw)

This commit is contained in:
Miodrag Milanovic 2017-03-30 08:36:15 +02:00
parent 01c732defa
commit 3fff3faf6c
2 changed files with 8 additions and 8 deletions

View File

@ -5,14 +5,7 @@
#include <bx/allocator.h> #include <bx/allocator.h>
#include <bx/hash.h> #include <bx/hash.h>
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-overflow"
#endif
#include <bx/readerwriter.h> #include <bx/readerwriter.h>
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
#include <bx/string.h> #include <bx/string.h>
#if !BX_CRT_NONE #if !BX_CRT_NONE

View File

@ -768,7 +768,14 @@ project "bx"
includedirs { includedirs {
MAME_DIR .. "3rdparty/bx/include/compat/freebsd", MAME_DIR .. "3rdparty/bx/include/compat/freebsd",
} }
if _OPTIONS["gcc"]~=nil and string.find(_OPTIONS["gcc"], "gcc") then
configuration { "linux*" }
buildoptions {
"-Wno-strict-overflow",
}
end
configuration { } configuration { }
includedirs { includedirs {