Skip to content

Commit

Permalink
Fix events on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BlockMen committed Dec 11, 2015
1 parent 6133b2b commit aed1076
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/threading/event.cpp
Expand Up @@ -25,14 +25,6 @@ DEALINGS IN THE SOFTWARE.

#include "threading/event.h"

#if defined(_WIN32)
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#endif


#if __cplusplus < 201103L
Event::Event()
{
Expand Down Expand Up @@ -92,4 +84,3 @@ void Event::signal()
pthread_mutex_unlock(&mutex);
#endif
}

6 changes: 4 additions & 2 deletions src/threading/event.h
Expand Up @@ -30,7 +30,10 @@ DEALINGS IN THE SOFTWARE.
#include <condition_variable>
#include "threading/mutex.h"
#elif defined(_WIN32)
#include <windef.h>
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#else
#include <pthread.h>
#endif
Expand Down Expand Up @@ -66,4 +69,3 @@ class Event {
};

#endif

0 comments on commit aed1076

Please sign in to comment.