| Index: src/globals.h
|
| diff --git a/src/globals.h b/src/globals.h
|
| index 0e8f42b834abffdcc4ce770b98cdef03baf2f032..3abbc6b6f9fd7bf8407d7623bc147e8a183f45c4 100644
|
| --- a/src/globals.h
|
| +++ b/src/globals.h
|
| @@ -14,6 +14,32 @@
|
| #include "src/base/logging.h"
|
| #include "src/base/macros.h"
|
|
|
| +#ifdef V8_OS_WIN
|
| +
|
| +// Setup for Windows shared library export.
|
| +#ifdef BUILDING_V8_SHARED
|
| +#define V8_EXPORT_PRIVATE __declspec(dllexport)
|
| +#elif USING_V8_SHARED
|
| +#define V8_EXPORT_PRIVATE __declspec(dllimport)
|
| +#else
|
| +#define V8_EXPORT_PRIVATE
|
| +#endif // BUILDING_V8_SHARED
|
| +
|
| +#else // V8_OS_WIN
|
| +
|
| +// Setup for Linux shared library export.
|
| +#if V8_HAS_ATTRIBUTE_VISIBILITY
|
| +#ifdef BUILDING_V8_SHARED
|
| +#define V8_EXPORT_PRIVATE __attribute__((visibility("default")))
|
| +#else
|
| +#define V8_EXPORT_PRIVATE
|
| +#endif
|
| +#else
|
| +#define V8_EXPORT_PRIVATE
|
| +#endif
|
| +
|
| +#endif // V8_OS_WIN
|
| +
|
| // Unfortunately, the INFINITY macro cannot be used with the '-pedantic'
|
| // warning flag and certain versions of GCC due to a bug:
|
| // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11931
|
|
|