浏览代码

attribute const -> pure.

Бранимир Караџић 3 年之前
父节点
当前提交
bd53db4861
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) )