瀏覽代碼

Include unistd.h in Network.h.
Compile SM2 shaders last in CompileAllShaders.bat to easily catch SM2-specific errors.

Lasse Öörni 13 年之前
父節點
當前提交
0ceeda8a5d
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 1 1
      Bin/CompileAllShaders.bat
  2. 4 0
      ThirdParty/kNet/include/kNet/Network.h

+ 1 - 1
Bin/CompileAllShaders.bat

@@ -1,2 +1,2 @@
+shadercompiler CoreData/Shaders/HLSL/*.xml CoreData/Shaders/HLSL/SM3 -dSM3
 shadercompiler CoreData/Shaders/HLSL/*.xml CoreData/Shaders/HLSL/SM2
-shadercompiler CoreData/Shaders/HLSL/*.xml CoreData/Shaders/HLSL/SM3 -dSM3

+ 4 - 0
ThirdParty/kNet/include/kNet/Network.h

@@ -16,11 +16,15 @@
 /** @file Network.h
 	@brief The class Network. The root point for creating client and server objects. */
 
+// Modified by Lasse Öörni for Urho3D
+
 #if defined(UNIX) || defined(ANDROID)
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netdb.h>
+// Urho3D: include also unistd.h
+#include <unistd.h>
 #endif
 
 #include "kNetBuildConfig.h"