error: ‘pthread_once’ was not declared in this scope
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10941 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
43d1ca8c7e
commit
a0949cd1fe
1 changed files with 9 additions and 4 deletions
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
namespace SwigExamples {
|
||||
|
||||
# if defined(_WIN32) || defined(__WIN32__)
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
namespace SwigExamples {
|
||||
|
||||
class CriticalSection {
|
||||
public:
|
||||
CriticalSection() {
|
||||
|
|
@ -27,9 +27,14 @@ private:
|
|||
CriticalSection &critical_section;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
namespace SwigExamples {
|
||||
|
||||
class CriticalSection {
|
||||
public:
|
||||
CriticalSection() {
|
||||
|
|
@ -55,7 +60,7 @@ private:
|
|||
CriticalSection &critical_section;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue