Changeset 174108 in webkit for trunk/Source/JavaScriptCore/API


Ignore:
Timestamp:
Sep 30, 2014, 10:27:10 AM (11 years ago)
Author:
[email protected]
Message:

Fix C API header
https://bugs.webkit.org/show_bug.cgi?id=137254
<rdar://problem/18487528>

Build fix

Guard extern "C" behind cplusplus ifdef

  • API/JSBase.h:
File:
1 edited

Legend:

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

    r172532 r174108  
    3838#import <Foundation/NSMapTablePriv.h>
    3939#else
     40
     41#ifndef __cplusplus
    4042extern "C" {
     43#endif
    4144    void *NSMapGet(NSMapTable *, const void *key);
    4245    void NSMapInsert(NSMapTable *, const void *key, const void *value);
    4346    void NSMapRemove(NSMapTable *, const void *key);
     47
     48#ifndef __cplusplus
    4449}
     50#endif
    4551#endif
    4652#endif // defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
Note: See TracChangeset for help on using the changeset viewer.