When I try to port my Win32 code from Microsoft toolchain to MinGW, most code compiles fine, but there are few exceptions. One particular API which seems to be missing in MinGW is SList API (including InitializeSListHead, InterlockedPushEntrySList) – when I compile my sources, I get error about those functions being not defined. What can I do to have this
API available under MinGW? Is there some Win32 SDK I could update, or something like that?
When I try to port my Win32 code from Microsoft toolchain to MinGW, most
Share
Current MinGW (based on GCC 4.6.2) already contains SList API, but you need to indicate you are compiling for the Windows target supporting it by defining a preprocessor value _WIN32_WINNT=0x0501 or higher (which indicates Windows Server 2003 with SP1, Windows XP with SP2).