File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 21
21
22
22
#define _CRT_SECURE_NO_WARNINGS
23
23
24
+ #ifdef _MSC_VER
25
+ #pragma warning(disable : 4201 4480) // nonstandard extension used: [nameless struct/union | specifying underlying type for enum]
26
+ #endif
27
+
24
28
#ifdef _WIN32
25
29
#define USE_WINDOWS_API
26
30
#elif !defined(__posix)
@@ -57,6 +61,7 @@ namespace PE {
57
61
58
62
inline static bool IsIntResID (const_resid r) { return (((size_t )r) >> 16 ) == 0 ; }
59
63
inline static resid MakeResID (uint16_t i) { return (resid)(size_t )i; }
64
+ inline static uint16_t ResID2Int (const_resid r) { return (uint16_t )(size_t )r; }
60
65
61
66
static const void *const null = NULL ;
62
67
@@ -241,7 +246,6 @@ namespace PE {
241
246
};
242
247
243
248
namespace Internal {
244
- inline static uint16_t ResID2Int (const_resid r) { return (uint16_t )(size_t )r; }
245
249
#ifndef ARRAYSIZE
246
250
#define ARRAYSIZE (a ) sizeof (a)/sizeof (a[0 ])
247
251
#endif
You can’t perform that action at this time.
0 commit comments