v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 65 | skipping to change at line 65 | |||
#ifdef BUILDING_V8_SHARED | #ifdef BUILDING_V8_SHARED | |||
#define V8EXPORT __declspec(dllexport) | #define V8EXPORT __declspec(dllexport) | |||
#elif USING_V8_SHARED | #elif USING_V8_SHARED | |||
#define V8EXPORT __declspec(dllimport) | #define V8EXPORT __declspec(dllimport) | |||
#else | #else | |||
#define V8EXPORT | #define V8EXPORT | |||
#endif // BUILDING_V8_SHARED | #endif // BUILDING_V8_SHARED | |||
#else // _WIN32 | #else // _WIN32 | |||
// Setup for Linux shared library export. There is no need to distinguish | // Setup for Linux shared library export. | |||
// 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) && defined(V8_SHARED) | |||
#ifdef BUILDING_V8_SHARED | ||||
#define V8EXPORT __attribute__ ((visibility("default"))) | #define V8EXPORT __attribute__ ((visibility("default"))) | |||
#else | ||||
#define V8EXPORT | ||||
#endif | ||||
#else // defined(__GNUC__) && (__GNUC__ >= 4) | #else // defined(__GNUC__) && (__GNUC__ >= 4) | |||
#define V8EXPORT | #define V8EXPORT | |||
#endif // defined(__GNUC__) && (__GNUC__ >= 4) | #endif // defined(__GNUC__) && (__GNUC__ >= 4) | |||
#endif // _WIN32 | #endif // _WIN32 | |||
/** | /** | |||
* The v8 JavaScript engine. | * The v8 JavaScript engine. | |||
*/ | */ | |||
namespace v8 { | namespace v8 { | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 5 lines changed or added | |||