From 88614730f89a9ff5c4331d5e844be4a4b2b1a5b7 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 29 Dec 2010 11:42:10 +0000 Subject: [PATCH] [STLPORT] - Add some additional definitions for amd64 compilation with gcc svn path=/branches/cmake-bringup/; revision=50211 --- include/c++/stlport/stl/config/_reactos.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/c++/stlport/stl/config/_reactos.h b/include/c++/stlport/stl/config/_reactos.h index 552dd73dfc8..bcebf7d1431 100644 --- a/include/c++/stlport/stl/config/_reactos.h +++ b/include/c++/stlport/stl/config/_reactos.h @@ -305,4 +305,21 @@ // Include stlport windows specifics #include "_windows.h" +#ifdef _M_AMD64 +#ifdef __cplusplus +extern "C" { +#endif + _STLP_IMPORT_DECLSPEC void* InterlockedFlushSList(void*); + _STLP_IMPORT_DECLSPEC void* InterlockedPopEntrySList(void*); + _STLP_IMPORT_DECLSPEC void* InterlockedPushEntrySList(void*, void*); +#ifdef __cplusplus +} +#endif +#define InterlockedPopEntrySList(list) reinterpret_cast<_STLP_atomic_freelist::item*>(InterlockedPopEntrySList(list)) +#define InterlockedFlushSList(list) reinterpret_cast<_STLP_atomic_freelist::item*>(InterlockedFlushSList(list)) + +#undef __cdecl__ +#define __cdecl__ +#endif + #endif