Explorar o código

use restrict keyword in c++

Julius Pfrommer %!s(int64=9) %!d(string=hai) anos
pai
achega
a91404198d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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