Explorar el Código

use restrict keyword in c++

Julius Pfrommer hace 9 años
padre
commit
a91404198d
Se han modificado 1 ficheros con 2 adiciones y 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