[MLton-commit] r6889

Wesley Terpstra wesley at mlton.org
Tue Sep 23 19:21:57 PDT 2008


gcc 3.4 already has __attribute__((visibility("hidden")))


----------------------------------------------------------------------

U   mlton/trunk/runtime/export.h

----------------------------------------------------------------------

Modified: mlton/trunk/runtime/export.h
===================================================================
--- mlton/trunk/runtime/export.h	2008-09-24 02:16:45 UTC (rev 6888)
+++ mlton/trunk/runtime/export.h	2008-09-24 02:21:56 UTC (rev 6889)
@@ -31,7 +31,7 @@
 #define PUBLIC   __declspec(dllexport)
 #define PRIVATE
 #else
-#if __GNUC__ >= 4
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
 #define EXTERNAL __attribute__((visibility("default")))
 #define PUBLIC   __attribute__((visibility("default")))
 #define PRIVATE  __attribute__((visibility("hidden")))




More information about the MLton-commit mailing list