mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
Fixes for solaris 11 build (nw)
This commit is contained in:
parent
ab9c8c2678
commit
5e79b9c0e1
2
3rdparty/mongoose/mongoose.c
vendored
2
3rdparty/mongoose/mongoose.c
vendored
@ -2811,7 +2811,7 @@ static int is_big_endian(void) {
|
|||||||
// Copyright(c) By Steve Reid <steve@edmweb.com>
|
// Copyright(c) By Steve Reid <steve@edmweb.com>
|
||||||
#define SHA1HANDSOFF
|
#define SHA1HANDSOFF
|
||||||
#if defined(__sun)
|
#if defined(__sun)
|
||||||
#include "solarisfixes.h"
|
//#include "solarisfixes.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
union char64long16 { unsigned char c[64]; uint32_t l[16]; };
|
union char64long16 { unsigned char c[64]; uint32_t l[16]; };
|
||||||
|
@ -41,7 +41,8 @@ function findfunction(x)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function layoutbuildtask(_folder, _name)
|
function layoutbuildtask(_folder, _name)
|
||||||
return { MAME_DIR .. "src/".._folder.."/".. _name ..".lay" , GEN_DIR .. _folder .. "/".._name..".lh", { MAME_DIR .. "src/build/file2str.py" }, {"@echo Converting src/".._folder.."/".._name..".lay...", PYTHON .. " $(1) $(<) $(@) layout_".._name }};
|
return { MAME_DIR .. "src/".._folder.."/".. _name ..".lay" , GEN_DIR .. _folder .. "/".._name..".lh",
|
||||||
|
{ MAME_DIR .. "src/build/file2str.py" }, {"@echo Converting src/".._folder.."/".._name..".lay...", PYTHON .. " $(1) $(<) $(@) layout_".._name }};
|
||||||
end
|
end
|
||||||
|
|
||||||
CPUS = {}
|
CPUS = {}
|
||||||
@ -612,10 +613,17 @@ end
|
|||||||
if _ACTION == "gmake" then
|
if _ACTION == "gmake" then
|
||||||
|
|
||||||
--we compile C-only to C89 standard with GNU extensions
|
--we compile C-only to C89 standard with GNU extensions
|
||||||
|
if (_OPTIONS["targetos"]=="solaris") then
|
||||||
|
buildoptions_c {
|
||||||
|
"-std=gnu99",
|
||||||
|
}
|
||||||
|
else
|
||||||
buildoptions_c {
|
buildoptions_c {
|
||||||
"-std=gnu89",
|
"-std=gnu89",
|
||||||
|
|
||||||
}
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
if _OPTIONS["CPP11"]=="1" then
|
if _OPTIONS["CPP11"]=="1" then
|
||||||
buildoptions_cpp {
|
buildoptions_cpp {
|
||||||
|
Loading…
Reference in New Issue
Block a user