From 8254bebed7609fe24902267bea25e3866f2a4bcc Mon Sep 17 00:00:00 2001 From: Piers Daniell Date: Tue, 24 Feb 2015 13:58:47 -0700 Subject: Get the trace player to work with Windows This change modifies many of the generators to use "#if defined(PLATFORM_LINUX) || defined(XCB_NVIDIA)" to choose between using XCB or WIN32 native. --- include/xglLayer.h | 10 +++------- include/xglWsiWinExt.h | 4 ---- 2 files changed, 3 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/xglLayer.h b/include/xglLayer.h index fc192571..6a81c90f 100644 --- a/include/xglLayer.h +++ b/include/xglLayer.h @@ -6,11 +6,9 @@ #include "xgl.h" #include "xglDbg.h" -#if defined(_WIN32) -#else // WIN32 -// FIXME: NEED WINDOWS EQUIVALENT +#if defined(PLATFORM_LINUX) || defined(XCB_NVIDIA) #include "xglWsiX11Ext.h" -#endif // WIN32 +#endif #if defined(__GNUC__) && __GNUC__ >= 4 # define XGL_LAYER_EXPORT __attribute__((visibility("default"))) #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590) @@ -151,9 +149,7 @@ typedef struct _XGL_LAYER_DISPATCH_TABLE xglDbgSetDeviceOptionType DbgSetDeviceOption; xglCmdDbgMarkerBeginType CmdDbgMarkerBegin; xglCmdDbgMarkerEndType CmdDbgMarkerEnd; -#if defined(_WIN32) -// FIXME: NEED WINDOWS EQUIVALENT -#else // WIN32 +#if defined(PLATFORM_LINUX) || defined(XCB_NVIDIA) xglWsiX11AssociateConnectionType WsiX11AssociateConnection; xglWsiX11GetMSCType WsiX11GetMSC; xglWsiX11CreatePresentableImageType WsiX11CreatePresentableImage; diff --git a/include/xglWsiWinExt.h b/include/xglWsiWinExt.h index 84d3eb13..b93841b1 100644 --- a/include/xglWsiWinExt.h +++ b/include/xglWsiWinExt.h @@ -3,10 +3,6 @@ #ifndef __XGLWSIWINEXT_H__ #define __XGLWSIWINEXT_H__ -// This should be moved out of this WSI header file and -// into a platform-specific file. -#define snprintf _snprintf - // This is just to get windows to build. // Need to replace with the declarations for Windows wsi. typedef void XGL_WSI_X11_CONNECTION_INFO; -- cgit v1.2.3