diff options
author | 2016-03-14 19:31:41 +1100 | |
---|---|---|
committer | 2016-03-14 19:32:17 +1100 | |
commit | fc87913612c0f37edcfc3af7295ed6194f59d0bc (patch) | |
tree | 9842780db399c00eabae34b508a258588ccc9e10 | |
parent | 34d7850c1e507aab5a7dbc4cb410433fa68403e3 (diff) |
Fix SDL Windows build
-rw-r--r-- | scripts/genie.lua | 2 | ||||
-rw-r--r-- | scripts/src/osd/sdl.lua | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua index 12ef7bdf58d..3b441df21c4 100644 --- a/scripts/genie.lua +++ b/scripts/genie.lua @@ -816,7 +816,7 @@ configuration { "mingw-clang" } } configuration { } - -- add the error warning flag +-- add the error warning flag if _OPTIONS["NOWERROR"]==nil then buildoptions { "-Werror", diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua index 948ca7d26b3..47a8b0ff3b6 100644 --- a/scripts/src/osd/sdl.lua +++ b/scripts/src/osd/sdl.lua @@ -479,11 +479,15 @@ project ("ocore_" .. _OPTIONS["osd"]) MAME_DIR .. "src/osd/modules/file/posixsocket.cpp", } elseif BASE_TARGETOS=="win32" then + includedirs { + MAME_DIR .. "src/osd/windows", + } files { MAME_DIR .. "src/osd/modules/file/winfile.cpp", MAME_DIR .. "src/osd/modules/file/winfile.h", MAME_DIR .. "src/osd/modules/file/winptty.cpp", MAME_DIR .. "src/osd/modules/file/winsocket.cpp", + MAME_DIR .. "src/osd/windows/winutil.cpp", -- FIXME put the necessary functions somewhere more appropriate } else files { |