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:
William S Fulton 2008-11-23 21:47:39 +00:00
commit a0949cd1fe

View file

@ -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