Browse Source

attribute const -> pure.

Бранимир Караџић 3 years ago
parent
commit
bd53db4861
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/bx/macros.h

+ 1 - 1
include/bx/macros.h

@@ -66,7 +66,7 @@
 #	define BX_UNLIKELY(_x) __builtin_expect(!!(_x), 0)
 #	define BX_NO_INLINE   __attribute__( (noinline) )
 #	define BX_NO_RETURN   __attribute__( (noreturn) )
-#	define BX_CONST_FUNC  __attribute__( (const) )
+#	define BX_CONST_FUNC  __attribute__( (pure) )
 
 #	if BX_COMPILER_GCC >= 70000
 #		define BX_FALLTHROUGH __attribute__( (fallthrough) )