Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 5c2c8b6671827f56ddddb6ef4a71182b6d54c164..480cbaa9553f295f6ad844f789e54fa128059402 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -63,15 +63,16 @@ |
#else // _WIN32 |
// Setup for Linux shared library export. |
-#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(V8_SHARED) |
+#if defined(__GNUC__) && ((__GNUC__ >= 4) || \ |
+ (__GNUC__ == 3 && __GNUC_MINOR__ >= 3)) && defined(V8_SHARED) |
#ifdef BUILDING_V8_SHARED |
#define V8EXPORT __attribute__ ((visibility("default"))) |
#else |
#define V8EXPORT |
#endif |
-#else // defined(__GNUC__) && (__GNUC__ >= 4) |
+#else |
#define V8EXPORT |
-#endif // defined(__GNUC__) && (__GNUC__ >= 4) |
+#endif |
#endif // _WIN32 |