aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan Elliott <ian@lunarg.com>2015-02-26 14:34:52 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-03-02 17:21:11 -0700
commit4aaa3ed005530a2b1600d1981fcc39a6297d94b3 (patch)
tree22ea313eada1f17d2aa52993455b14f2e2d83ca6 /include
parent06f82818902ab66bb63c0fb4569cea76b10f2c03 (diff)
downloadusermoji-4aaa3ed005530a2b1600d1981fcc39a6297d94b3.tar.xz
Linux: Must use "__linux__" instead of "PLATFORM_LINUX".
There are some places (e.g. glave) where PLATFORM_LINUX is #define'd, but normally we need to rely on "__linux__", which is #define'd by the compiler (i.e. we can rely on it being there).
Diffstat (limited to 'include')
-rw-r--r--include/xglLayer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/xglLayer.h b/include/xglLayer.h
index 6a81c90f..d6a7fbb2 100644
--- a/include/xglLayer.h
+++ b/include/xglLayer.h
@@ -6,7 +6,7 @@
#include "xgl.h"
#include "xglDbg.h"
-#if defined(PLATFORM_LINUX) || defined(XCB_NVIDIA)
+#if defined(__linux__) || defined(XCB_NVIDIA)
#include "xglWsiX11Ext.h"
#endif
#if defined(__GNUC__) && __GNUC__ >= 4
@@ -149,7 +149,7 @@ typedef struct _XGL_LAYER_DISPATCH_TABLE
xglDbgSetDeviceOptionType DbgSetDeviceOption;
xglCmdDbgMarkerBeginType CmdDbgMarkerBegin;
xglCmdDbgMarkerEndType CmdDbgMarkerEnd;
-#if defined(PLATFORM_LINUX) || defined(XCB_NVIDIA)
+#if defined(__linux__) || defined(XCB_NVIDIA)
xglWsiX11AssociateConnectionType WsiX11AssociateConnection;
xglWsiX11GetMSCType WsiX11GetMSC;
xglWsiX11CreatePresentableImageType WsiX11CreatePresentableImage;