Skip to content

Commit 009200a

Browse files
committed
update platform macros
1 parent f7f6059 commit 009200a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

inc/zoo/pp/platform.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#ifndef ZOO_PLATFORM_MACROS_H
22
#define ZOO_PLATFORM_MACROS_H
33

4-
#ifdef _MSC_VER
4+
#ifdef __AVX2__
5+
#define ZOO_CONFIGURED_TO_USE_AVX 1
6+
#else
7+
#define ZOO_CONFIGURED_TO_USE_AVX 0
8+
#endif
59

10+
#ifdef _MSC_VER
611
#define MSVC_EMPTY_BASES __declspec(empty_bases)
7-
812
#else
9-
1013
#define MSVC_EMPTY_BASES
11-
12-
#define ZOO_CONFIGURED_TO_USE_AVX defined(__AVX2__) // TODO bring this in from CMake
13-
1414
#endif
1515

1616
#endif

0 commit comments

Comments
 (0)