Fix some issues with the OSX port
[fio.git] / compiler / compiler.h
index 0a08bb12a238703ed252b62c451beac6406f695e..c1923ddd8e6019025d631f6d2ba4a648e7c8a469 100644 (file)
@@ -15,6 +15,8 @@
 
 #define uninitialized_var(x) x = x
 
+#ifndef __weak
 #define __weak __attribute__((weak))
+#endif
 
 #endif