mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +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
ebe0afc55d
commit
1b933b6333
1 changed files with 12 additions and 0 deletions
|
@ -25,6 +25,13 @@
|
||||||
$Date$ $Revision$
|
$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 "config.h"
|
||||||
#include "GNUstepBase/preface.h"
|
#include "GNUstepBase/preface.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -205,6 +212,11 @@ static void GSLogZombie(id o, SEL sel)
|
||||||
|
|
||||||
#if defined(__MINGW32__)
|
#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
|
/* Set up atomic read, increment and decrement for mswindows
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue