Changeset 28311 in webkit for trunk/JavaScriptCore/API/JSBase.h


Ignore:
Timestamp:
Dec 1, 2007, 9:24:25 PM (17 years ago)
Author:
[email protected]
Message:

2007-12-01 Alp Toker <[email protected]>

Reviewed by Adam Roben.

http://bugs.webkit.org/show_bug.cgi?id=16228
kJSClassDefinitionEmpty is not exported with JS_EXPORT

Add JS_EXPORT to kJSClassDefinitionEmpty.

Make the gcc compiler check take precedence over the WIN32
_WIN32

check to ensure that symbols are exported on Windows when using gcc.

Add a TODO referencing the bug about JS_EXPORT in the Win build
(http://bugs.webkit.org/show_bug.cgi?id=16227)

Don't define JS_EXPORT as 'extern' when the compiler is unknown since
it would result in the incorrect expansion:

extern extern const JSClassDefinition kJSClassDefinitionEmpty;

(This was something we inherited from CFBase.h that doesn't make sense
for JSBase.h)

  • API/JSBase.h:
  • API/JSObjectRef.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSBase.h

    r28100 r28311  
    6262
    6363#undef JS_EXPORT
    64 #if defined(WIN32) || defined(_WIN32)
     64#if defined(__GNUC__)
     65    #define JS_EXPORT __attribute__((visibility("default")))
     66#elif defined(WIN32) || defined(_WIN32)
     67    // TODO: Export symbols with JS_EXPORT when using MSVC.
     68    // See http://bugs.webkit.org/show_bug.cgi?id=16227
    6569    #define JS_EXPORT
    66 #elif defined(__GNUC__)
    67     #define JS_EXPORT __attribute__((visibility("default")))
    6870#else
    69     #define JS_EXPORT extern
     71    #define JS_EXPORT
    7072#endif
    7173
Note: See TracChangeset for help on using the changeset viewer.