Index: include/v8-preparser.h |
diff --git a/include/v8-preparser.h b/include/v8-preparser.h |
index f11d05ef793c1f869af26c733bffee8921c1e14a..389949d2004de9d409e8343cc8f54e85e8d2f144 100644 |
--- a/include/v8-preparser.h |
+++ b/include/v8-preparser.h |
@@ -55,11 +55,12 @@ |
// Setup for Linux shared library export. There is no need to distinguish |
// between building or using the V8 shared library, but we should not |
// export symbols when we are building a static library. |
-#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED) |
+#if defined(__GNUC__) && ((__GNUC__ >= 4) || \ |
+ (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(V8_SHARED) |
#define V8EXPORT __attribute__ ((visibility("default"))) |
-#else // defined(__GNUC__) && (__GNUC__ >= 4) |
+#else |
#define V8EXPORT |
-#endif // defined(__GNUC__) && (__GNUC__ >= 4) |
+#endif |
#endif // _WIN32 |