From a1f25bac9eb9961051d6ed038b86c8a4928d198a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 24 Aug 2014 23:18:11 -0700 Subject: [PATCH] RPI: Fixed compile warnings. --- include/bx/platform.h | 2 +- premake/toolchain.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/bx/platform.h b/include/bx/platform.h index 839e966..2d1568a 100644 --- a/include/bx/platform.h +++ b/include/bx/platform.h @@ -68,7 +68,7 @@ # undef BX_PLATFORM_WINRT # define BX_PLATFORM_WINRT 1 # endif -#elif defined(BCM2708) +#elif defined(__VCCOREVER__) // RaspberryPi compiler defines __linux__ # undef BX_PLATFORM_RPI # define BX_PLATFORM_RPI 1 diff --git a/premake/toolchain.lua b/premake/toolchain.lua index 25213ee..fa64bf6 100755 --- a/premake/toolchain.lua +++ b/premake/toolchain.lua @@ -708,7 +708,8 @@ function toolchain(_buildDir, _libDir) "/opt/vc/lib", } 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 { "-std=c++0x",