소스 검색

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