Explorar el Código

Merge pull request #71 from Eric-DawnEngine/master

Solved C3861 __cpuid&__rdtsc identifier not found
Marko Pintera hace 8 años
padre
commit
8fb2f0ddb0
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      Source/BansheeCore/Source/BsProfilerCPU.cpp

+ 4 - 0
Source/BansheeCore/Source/BsProfilerCPU.cpp

@@ -5,6 +5,10 @@
 #include "BsPlatform.h"
 #include "BsPlatform.h"
 #include <chrono>
 #include <chrono>
 
 
+#if BS_COMPILER == BS_COMPILER_MSVC
+	#include <intrin.h>
+#endif
+
 #if BS_COMPILER == BS_COMPILER_GNUC || BS_COMPILER == BS_COMPILER_CLANG
 #if BS_COMPILER == BS_COMPILER_GNUC || BS_COMPILER == BS_COMPILER_CLANG
 	#include "cpuid.h"
 	#include "cpuid.h"
 #endif
 #endif