mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Fix events on Windows
This commit is contained in:
		@@ -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()
 | 
			
		||||
{
 | 
			
		||||
@@ -92,4 +84,3 @@ void Event::signal()
 | 
			
		||||
	pthread_mutex_unlock(&mutex);
 | 
			
		||||
#endif
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
@@ -66,4 +69,3 @@ private:
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user