Applied patch #6677

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27080 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2008-11-17 13:45:32 +00:00
parent 6494df8f1b
commit 8658db87db
35 changed files with 142 additions and 88 deletions

View file

@ -28,9 +28,10 @@
/* On some versions of mingw we need to work around bad function declarations
* by defining them away and doing the declarations ourself later.
*/
#ifndef _WIN64
#define InterlockedIncrement BadInterlockedIncrement
#define InterlockedDecrement BadInterlockedDecrement
#endif
#include "config.h"
#include "GNUstepBase/preface.h"
@ -211,11 +212,12 @@ static void GSLogZombie(id o, SEL sel)
#if defined(REFCNT_LOCAL)
#if defined(__MINGW32__)
#ifndef _WIN64
#undef InterlockedIncrement
#undef InterlockedDecrement
LONG WINAPI InterlockedIncrement(LONG volatile *);
LONG WINAPI InterlockedDecrement(LONG volatile *);
#endif
/* Set up atomic read, increment and decrement for mswindows
*/