Parcourir la source

Merge pull request #71 from Eric-DawnEngine/master

Solved C3861 __cpuid&__rdtsc identifier not found
Marko Pintera il y a 8 ans
Parent
commit
8fb2f0ddb0
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      Source/BansheeCore/Source/BsProfilerCPU.cpp

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

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