Explorar el Código

Solved C3861 __cpuid&__rdtsc identifier not found

error C3861: '__cpuid ': identifier not found
error C3861: '__rdtsc ': identifier not found
Eric-DawnEngine hace 8 años
padre
commit
5cf3aa3e7b
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