Skip to content

Commit

Permalink
Fix ICL compiling issue
Browse files Browse the repository at this point in the history
  • Loading branch information
msg7086 committed Sep 4, 2019
1 parent 4c8cc18 commit f1a76cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/compiler_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ static inline void* _aligned_malloc(size_t size, size_t alignment)
#define _aligned_free free
#else
#include <intrin.h>
// ICL complains about unresolved external symbol
#if __INTEL_COMPILER && !_WIN64
__forceinline void* _InterlockedCompareExchangePointer(
void* volatile *Destination, void* Exchange, void* Comperand) {
return (void*) _InterlockedCompareExchange((long volatile *) Destination, (long) Exchange, (long) Comperand);
}
#endif
#endif


Expand Down

0 comments on commit f1a76cb

Please sign in to comment.