Explorar o código

RPI: Fixed compile warnings.

Branimir Karadžić %!s(int64=11) %!d(string=hai) anos
pai
achega
a1f25bac9e
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 1 1
      include/bx/platform.h
  2. 2 1
      premake/toolchain.lua

+ 1 - 1
include/bx/platform.h

@@ -68,7 +68,7 @@
 #		undef BX_PLATFORM_WINRT
 #		undef BX_PLATFORM_WINRT
 #		define BX_PLATFORM_WINRT 1
 #		define BX_PLATFORM_WINRT 1
 #	endif
 #	endif
-#elif defined(BCM2708)
+#elif defined(__VCCOREVER__)
 // RaspberryPi compiler defines __linux__
 // RaspberryPi compiler defines __linux__
 #	undef BX_PLATFORM_RPI
 #	undef BX_PLATFORM_RPI
 #	define BX_PLATFORM_RPI 1
 #	define BX_PLATFORM_RPI 1

+ 2 - 1
premake/toolchain.lua

@@ -708,7 +708,8 @@ function toolchain(_buildDir, _libDir)
 			"/opt/vc/lib",
 			"/opt/vc/lib",
 		}
 		}
 		defines {
 		defines {
-			"BCM2708", -- There is no special prefedined compiler symbol to detect RaspberryPi, faking it.
+			"__VCCOREVER__=0x04000000", -- There is no special prefedined compiler symbol to detect RaspberryPi, faking it.
+			"__STDC_VERSION__=199901L",
 		}
 		}
 		buildoptions {
 		buildoptions {
 			"-std=c++0x",
 			"-std=c++0x",