work around bug in mingw headers

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24767 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2007-03-05 16:09:46 +00:00
parent ebe0afc55d
commit 1b933b6333

View file

@ -25,6 +25,13 @@
$Date$ $Revision$
*/
/* On some versions of mingw we need to work around bad function declarations
* by defining them away and doing the declarations ourself later.
*/
#define InterlockedIncrement BadInterlockedIncrement
#define InterlockedDecrement BadInterlockedDecrement
#include "config.h"
#include "GNUstepBase/preface.h"
#include <stdarg.h>
@ -205,6 +212,11 @@ static void GSLogZombie(id o, SEL sel)
#if defined(__MINGW32__)
#undef InterlockedIncrement
#undef InterlockedDecrement
extern LONG InterlockedIncrement(LONG volatile *val);
extern LONG InterlockedDecrement(LONG volatile *val);
/* Set up atomic read, increment and decrement for mswindows
*/