mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
d259822e2b
commit
ab05881864
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue