소스 검색

Merge pull request #26 from syntheticmagus/master

Add MSVC defines for ARM and ARM64
Бранимир Караџић 6 년 전
부모
커밋
3484e01134
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      3rdparty/nvtt/nvcore/posh.h

+ 2 - 2
3rdparty/nvtt/nvcore/posh.h

@@ -490,12 +490,12 @@ LLVM:
 #  define POSH_CPU_SPARC 1
 #  define POSH_CPU_SPARC 1
 #endif
 #endif
 
 
-#if defined ARM || defined __arm__ || defined _ARM
+#if defined ARM || defined __arm__ || defined _ARM || defined _M_ARM
 #  define POSH_CPU_STRONGARM 1
 #  define POSH_CPU_STRONGARM 1
 #  define POSH_CPU_STRING "ARM"
 #  define POSH_CPU_STRING "ARM"
 #endif
 #endif
 
 
-#if defined __aarch64__
+#if defined __aarch64__ || defined _M_ARM64
 #  define POSH_CPU_AARCH64 1
 #  define POSH_CPU_AARCH64 1
 #  define POSH_CPU_STRING "ARM64"
 #  define POSH_CPU_STRING "ARM64"
 #endif
 #endif