Index: include/v8-profiler.h |
diff --git a/include/v8-profiler.h b/include/v8-profiler.h |
index cda2463362e199dc855240412dd251026eaaee44..2dcbb68d905ab67dcb7cb19b20b1697e77e7e16b 100644 |
--- a/include/v8-profiler.h |
+++ b/include/v8-profiler.h |
@@ -50,11 +50,12 @@ |
// Setup for Linux shared library export. See v8.h in this directory for |
// information on how to build/use V8 as shared 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 |