Ticket #2804: 0ad.diff
File 0ad.diff, 4.8 KB (added by , 10 years ago) |
---|
-
build/premake/extern_libs4.lua
235 235 -- Suppress all the Boost warnings on OS X by including it as a system directory 236 236 buildoptions { "-isystem../" .. libraries_dir .. "boost/include" } 237 237 end 238 if os.getversion().description == "OpenBSD" then 238 -- TODO This actually applies to most libraries we use on BSDs, make this a global setting. 239 if os.is("bsd") then 239 240 includedirs { "/usr/local/include" } 240 241 end 241 242 end, … … 347 348 elseif os.is("macosx") then 348 349 add_default_include_paths("iconv") 349 350 defines { "LIBICONV_STATIC" } 351 -- TODO Check OpenBSD 352 elseif os.getversion().description == "FreeBSD" then 353 defines { "HAVE_ICONV_CONST" } 350 354 end 351 355 end, 352 356 link_settings = function() … … 359 363 osx_names = { "iconv" }, 360 364 dbg_suffix = "", 361 365 }) 366 -- FreeBSD 10 and up have iconv in libc 367 -- TODO: Check other BSDs 368 if(not (os.getversion().description == "FreeBSD" and os.getversion().majorversion >= 10)) then 369 add_default_links({ 370 bsd_names = { "iconv" } 371 }) 372 end 362 373 end, 363 374 }, 364 375 icu = { -
build/premake/premake4.lua
38 38 39 39 dofile("extern_libs4.lua") 40 40 41 cc = os.getenv("CC") 42 if cc == nil or cc == "" then 43 -- TODO check if gcc exists and not on OS X 44 -- else use clang if present 45 cc = "gcc" 46 end 47 41 48 -- detect CPU architecture (simplistic, currently only supports x86, amd64 and ARM) 42 49 arch = "x86" 43 50 if _OPTIONS["android"] then … … 51 58 if arch == "x86_64" or arch == "amd64" then 52 59 arch = "amd64" 53 60 else 54 os.execute( "gcc-dumpmachine > .gccmachine.tmp")61 os.execute(cc .. " -dumpmachine > .gccmachine.tmp") 55 62 local f = io.open(".gccmachine.tmp", "r") 56 63 local machine = f:read("*line") 57 64 f:close() … … 109 116 -- It's too late to do this test by the time we start compiling the PCH file, so 110 117 -- do the test in this build script instead (which is kind of ugly - please fix if 111 118 -- you have a better idea) 112 if not _OPTIONS["icc"] then119 if not _OPTIONS["icc"] and cc == "gcc" then 113 120 os.execute("gcc -dumpversion > .gccver.tmp") 114 121 local f = io.open(".gccver.tmp", "r") 115 122 major, dot, minor = f:read(1, 1, 1) … … 393 400 if not os.is("windows") and not os.is("macosx") then 394 401 -- X11 includes may be installed in one of a gadzillion of three places 395 402 -- Famous last words: "You can't include too much! ;-)" 403 -- TODO update comment (or add /usr/local/ as an include search path for BSDs) 396 404 includedirs { 397 405 "/usr/X11R6/include/X11", 398 406 "/usr/X11R6/include", 407 "/usr/local/include/X11", 408 "/usr/local/include", 399 409 "/usr/include/X11" 400 410 } 401 libdirs { "/usr/X11R6/lib" } 411 libdirs { 412 "/usr/X11R6/lib", 413 "/usr/local/lib" 414 } 402 415 end 403 416 end 404 417 -
libraries/source/fcollada/src/FCollada/FUtils/FUStringConversion.cpp
247 247 template FMVector4 FUStringConversion::ToVector4<char>(const char**); 248 248 249 249 template bool FUStringConversion::ToBoolean<char>(const char*); 250 template int FUStringConversion::ToInt32<char>(const char**); 250 251 template unsigned int FUStringConversion::ToUInt32<char>(const char**); 251 252 template unsigned int FUStringConversion::HexToUInt32<char>(const char**, unsigned int); 252 253 -
source/tools/atlas/AtlasUI/ScenarioEditor/Tools/TransformObject.cpp
158 158 wxString x(xmlData->GetNodeContent()); 159 159 unsigned long xTmp = 0; 160 160 x.ToULong(&xTmp); 161 wxASSERT(xTmp <= (unsigned long) UINT32_MAX);161 wxASSERT(xTmp <= (unsigned long)std::numeric_limits<unsigned int>::max()); 162 162 actorSeed = xTmp; 163 163 } 164 164 -
source/tools/atlas/GameInterface/Handlers/EnvironmentHandlers.cpp
146 146 void Do() 147 147 { 148 148 m_OldSettings = GetSettings(); 149 m_NewSettings = msg->settings ;149 m_NewSettings = msg->settings._Unwrap(); 150 150 Redo(); 151 151 } 152 152