Commit e7691288 authored by Alexandre Julliard's avatar Alexandre Julliard

include/msvcrt: Make offsetof constant for compatibility with Mingw.

parent f402bcd0
...@@ -28,7 +28,9 @@ ...@@ -28,7 +28,9 @@
#endif #endif
#endif #endif
#ifdef _WIN64 #ifdef __GNUC__
#define offsetof(s,m) __builtin_offsetof(s,m)
#elif defined(_WIN64)
#define offsetof(s,m) (size_t)((ptrdiff_t)&(((s*)NULL)->m)) #define offsetof(s,m) (size_t)((ptrdiff_t)&(((s*)NULL)->m))
#else #else
#define offsetof(s,m) (size_t)&(((s*)NULL)->m) #define offsetof(s,m) (size_t)&(((s*)NULL)->m)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment