Ver Fonte

Windows.h in lowercase in kNet to fix case-sensitive MinGW cross-compile.

Lasse Öörni há 11 anos atrás
pai
commit
d0d400b1a6

+ 4 - 1
Source/ThirdParty/kNet/include/kNet/Atomics.h

@@ -13,8 +13,11 @@
    limitations under the License. */
 #pragma once
 
+// Modified by Lasse Oorni for Urho3D
+
 #ifdef WIN32
-#include <Windows.h>
+// Urho3D: windows.h in lowercase to fix MinGW cross-compiling on a case-sensitive system
+#include <windows.h>
 #endif
 
 /** @file Atomics.h

+ 4 - 1
Source/ThirdParty/kNet/include/kNet/Clock.h

@@ -16,8 +16,11 @@
 /** @file Clock.h
 	@brief The Clock class. Supplies timing facilities. */
 
+// Modifed by Lasse Oorni for Urho3D
+
 #ifdef WIN32
-#include <Windows.h>
+// Urho3D: windows.h in lowercase to fix MinGW cross-compiling on a case-sensitive system
+#include <windows.h>
 #endif
 
 namespace kNet

+ 4 - 1
Source/ThirdParty/kNet/include/kNet/Lockable.h

@@ -16,11 +16,14 @@
 /** @file Lockable.h
 	@brief The Lock<T> and Lockable<T> template classes. */
 
+// Modified by Lasse Oorni for Urho3D
+
 #ifdef KNET_USE_BOOST
 #include <boost/thread/recursive_mutex.hpp>
 #include <boost/thread/thread.hpp>
 #elif defined(WIN32)
-#include <Windows.h>
+// Urho3D: windows.h in lowercase to fix MinGW cross-compiling on a case-sensitive system
+#include <windows.h>
 #else
 #include <pthread.h>
 #endif

+ 4 - 1
Source/ThirdParty/kNet/include/kNet/Thread.h

@@ -16,6 +16,8 @@
 /** @file Thread.h
 	@brief The Thread class. Implements threading either using Boost, native Win32 or pthreads constructs. */
 
+// Modified by Lasse Oorni for Urho3D
+
 #include <string>
 
 #ifdef KNET_USE_BOOST
@@ -23,7 +25,8 @@
 #else
 
 #ifdef WIN32
-#include <Windows.h>
+// Urho3D: windows.h in lowercase to fix MinGW cross-compiling on a case-sensitive system
+#include <windows.h>
 #else
 #include <pthread.h>
 #endif

+ 4 - 1
Source/ThirdParty/kNet/src/64BitAllocDebugger.cpp

@@ -18,10 +18,13 @@
 	
 	Idea and code taken from http://randomascii.wordpress.com/2012/02/14/64-bit-made-easy/ */
 
+// Modified by Lasse Oorni for Urho3D
+
 #ifdef _WIN64
 #include "kNet/64BitAllocDebugger.h"
 #include <stdio.h>
-#include <Windows.h>
+// Urho3D: windows.h in lowercase to fix MinGW cross-compiling on a case-sensitive system
+#include <windows.h>
 #include <vector>
 
 BottomMemoryAllocator::BottomMemoryAllocator()