From e512bb77d191dc61d0f431da894fae9d70504aec Mon Sep 17 00:00:00 2001 From: Lance Date: Fri, 10 Dec 2010 05:01:25 +0000 Subject: [PATCH] Attempt to detect MSVC SDK version and avoid redefining structs that already defined within V7's SDK git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3692 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_win.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/engine/client/sys_win.c b/engine/client/sys_win.c index 4b1465431..0ddcce2cd 100644 --- a/engine/client/sys_win.c +++ b/engine/client/sys_win.c @@ -1273,21 +1273,32 @@ HWND hwnd_dialog; #include //#include +#ifdef _MSC_VER + #include "ntverp.h" +#endif + #ifndef SHARD_APPIDINFOLINK + +// SDK version 7600 = v7.0a & v7.1 +#if !defined(VER_PRODUCTBUILD) || VER_PRODUCTBUILD < 7600 typedef struct SHARDAPPIDINFOLINK { IShellLinkW *psl; PCWSTR pszAppID; } SHARDAPPIDINFOLINK; +#endif #define SHARD_APPIDINFOLINK 0x00000007 +#if !defined(VER_PRODUCTBUILD) || VER_PRODUCTBUILD < 7600 typedef struct { GUID fmtid; DWORD pid; } PROPERTYKEY; +#endif typedef struct IPropertyStore IPropertyStore; ; #ifndef MINGW +#if !defined(VER_PRODUCTBUILD) || VER_PRODUCTBUILD < 7600 typedef struct IPropertyStore { CONST_VTBL struct @@ -1327,6 +1338,7 @@ typedef struct IPropertyStore } *lpVtbl; } IPropertyStore; #endif +#endif static const IID IID_IPropertyStore = {0x886d8eeb, 0x8cf2, 0x4446, {0x8d, 0x02, 0xcd, 0xba, 0x1d, 0xbd, 0xcf, 0x99}}; #endif