浏览代码

use restrict keyword in c++

Julius Pfrommer 9 年之前
父节点
当前提交
a91404198d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/ua_config.h.in

+ 2 - 0
include/ua_config.h.in

@@ -78,6 +78,8 @@
 /* Define non-aliasing pointers */
 #ifdef _MSC_VER
 # define UA_RESTRICT __restrict
+#elif defined(__GNUC__)
+# define UA_RESTRICT __restrict__
 #else
 # define UA_RESTRICT restrict
 #endif