forked from gnustep/libobjc2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win32: use native threading APIs instead of pthreads
* use fiber local storage if NO_PTHREADS is defined * use critical sections instead of mutexes Contributing-author: Ben Viglietta <[email protected]>
- Loading branch information
Showing
4 changed files
with
76 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef __LIBOBJC_SAFEWINDOWS_H_INCLUDED__ | ||
#define __LIBOBJC_SAFEWINDOWS_H_INCLUDED__ | ||
|
||
#pragma push_macro("BOOL") | ||
|
||
#ifdef BOOL | ||
#undef BOOL | ||
#endif | ||
#define BOOL _WINBOOL | ||
|
||
#include <Windows.h> | ||
|
||
// Windows.h defines interface -> struct | ||
#ifdef interface | ||
#undef interface | ||
#endif | ||
|
||
#pragma pop_macro("BOOL") | ||
|
||
#endif // __LIBOBJC_SAFEWINDOWS_H_INCLUDED__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters