Skip to content

Commit 44b9dce

Browse files
committed
Fixed the fix for the C2719 Error that resulted in the build failing on non Visual Studio compilers.
1 parent 6b01d73 commit 44b9dce

File tree

1 file changed

+4
-8
lines changed
  • RadeonRays/src/accelerator

1 file changed

+4
-8
lines changed

RadeonRays/src/accelerator/bvh2.h

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,10 @@ namespace RadeonRays
115115
#endif // WIN32
116116
}
117117

118-
#if defined(_MSC_VER)
119-
#if defined(_WIN32)
120-
#if defined(_WIN64)
121-
#define MSVC_X86_ALIGNMENT_FIX
122-
#else
123-
#define MSVC_X86_ALIGNMENT_FIX &
124-
#endif
125-
#endif
118+
#if _MSC_VER <= 1900 && defined(_WIN32) && !defined(_WIN64)
119+
#define MSVC_X86_ALIGNMENT_FIX &
120+
#else
121+
#define MSVC_X86_ALIGNMENT_FIX
126122
#endif
127123

128124
void BuildImpl(

0 commit comments

Comments
 (0)