Explorar el Código

Add `STARPU_ATTRIBUTE_INTERNAL'.

Ludovic Courtès hace 14 años
padre
commit
91a9f3a5af
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      include/starpu_util.h

+ 3 - 1
include/starpu_util.h

@@ -51,10 +51,12 @@ extern "C" {
 #  define STARPU_UNLIKELY(expr)          (__builtin_expect(!!(expr),0))
 #  define STARPU_LIKELY(expr)            (__builtin_expect(!!(expr),1))
 #  define STARPU_ATTRIBUTE_UNUSED                  __attribute__((unused))
+#  define STARPU_ATTRIBUTE_INTERNAL      __attribute__ ((visibility ("internal")))
 #else
 #  define STARPU_UNLIKELY(expr)          (expr)
 #  define STARPU_LIKELY(expr)            (expr)
-#  define STARPU_ATTRIBUTE_UNUSED                  
+#  define STARPU_ATTRIBUTE_UNUSED
+#  define STARPU_ATTRIBUTE_INTERNAL
 #endif
 
 #if defined(__i386__) || defined(__x86_64__)