diff options
Diffstat (limited to '')
-rw-r--r-- | CPP/Common/MyInitGuid.h | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/CPP/Common/MyInitGuid.h b/CPP/Common/MyInitGuid.h index 04d77e2..3745c79 100644 --- a/CPP/Common/MyInitGuid.h +++ b/CPP/Common/MyInitGuid.h | |||
@@ -1,7 +1,7 @@ | |||
1 | // Common/MyInitGuid.h | 1 | // Common/MyInitGuid.h |
2 | 2 | ||
3 | #ifndef __COMMON_MY_INITGUID_H | 3 | #ifndef ZIP7_INC_COMMON_MY_INITGUID_H |
4 | #define __COMMON_MY_INITGUID_H | 4 | #define ZIP7_INC_COMMON_MY_INITGUID_H |
5 | 5 | ||
6 | /* | 6 | /* |
7 | This file must be included only to one C++ file in project before | 7 | This file must be included only to one C++ file in project before |
@@ -19,31 +19,39 @@ Also we need IID_IUnknown that is initialized in some file for linking: | |||
19 | Other: we define IID_IUnknown in this file | 19 | Other: we define IID_IUnknown in this file |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #ifdef __clang__ | 22 | // #include "Common.h" |
23 | #pragma clang diagnostic ignored "-Wmissing-variable-declarations" | 23 | /* vc6 without sdk needs <objbase.h> before <initguid.h>, |
24 | #endif | 24 | but it doesn't work in new msvc. |
25 | So we include full "MyWindows.h" instead of <objbase.h> */ | ||
26 | // #include <objbase.h> | ||
27 | #include "MyWindows.h" | ||
25 | 28 | ||
26 | #ifdef _WIN32 | 29 | #ifdef _WIN32 |
27 | 30 | ||
31 | #ifdef __clang__ | ||
32 | // #pragma GCC diagnostic ignored "-Wmissing-variable-declarations" | ||
33 | #endif | ||
34 | |||
28 | #ifdef UNDER_CE | 35 | #ifdef UNDER_CE |
29 | #include <basetyps.h> | 36 | #include <basetyps.h> |
30 | #endif | 37 | #endif |
31 | 38 | ||
32 | #include <InitGuid.h> | 39 | // for vc6 without sdk we must define INITGUID here |
40 | #define INITGUID | ||
41 | #include <initguid.h> | ||
33 | 42 | ||
34 | #ifdef UNDER_CE | 43 | #ifdef UNDER_CE |
35 | DEFINE_GUID(IID_IUnknown, | 44 | DEFINE_GUID(IID_IUnknown, |
36 | 0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); | 45 | 0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); |
37 | #endif | 46 | #endif |
38 | 47 | ||
39 | #else | 48 | #else // _WIN32 |
40 | 49 | ||
41 | #define INITGUID | 50 | #define INITGUID |
42 | #include "MyGuidDef.h" | 51 | #include "MyGuidDef.h" |
43 | DEFINE_GUID(IID_IUnknown, | 52 | DEFINE_GUID(IID_IUnknown, |
44 | 0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); | 53 | 0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46); |
45 | 54 | ||
46 | #endif | 55 | #endif // _WIN32 |
47 | |||
48 | 56 | ||
49 | #endif | 57 | #endif |