Browse Source

Try to fix the windows build

Panagiotis Christopoulos Charitos 4 years ago
parent
commit
653c920fda
1 changed files with 2 additions and 2 deletions
  1. 2 2
      AnKi/Config.h.cmake

+ 2 - 2
AnKi/Config.h.cmake

@@ -162,8 +162,8 @@
 #	define ANKI_PREFETCH_MEMORY(addr) __builtin_prefetch(addr)
 #	define ANKI_PREFETCH_MEMORY(addr) __builtin_prefetch(addr)
 #	define ANKI_CHECK_FORMAT(fmtArgIdx, firstArgIdx) __attribute__((format(printf, fmtArgIdx + 1, firstArgIdx + 1))) // On methods need to include "this"
 #	define ANKI_CHECK_FORMAT(fmtArgIdx, firstArgIdx) __attribute__((format(printf, fmtArgIdx + 1, firstArgIdx + 1))) // On methods need to include "this"
 #else
 #else
-#	define ANKI_LIKELY(x) ((x) == 1)
-#	define ANKI_UNLIKELY(x) ((x) == 1)
+#	define ANKI_LIKELY(x) (x)
+#	define ANKI_UNLIKELY(x) (x)
 #	define ANKI_RESTRICT
 #	define ANKI_RESTRICT
 #	define ANKI_USE_RESULT
 #	define ANKI_USE_RESULT
 #	define ANKI_FORCE_INLINE
 #	define ANKI_FORCE_INLINE