Improve use of ExportMacros
authormcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Jan 2018 23:49:02 +0000 (23:49 +0000)
committermcatanzaro@igalia.com <mcatanzaro@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Jan 2018 23:49:02 +0000 (23:49 +0000)
commit3f483ad6afe139b46ed13fe9453138d914f8bade
tree4f5dd1e4e689e2b7b098bcbe834fd1882100226f
parent35fbf99d29b1aea2c6effa10ca43a5c511fe93c7
Improve use of ExportMacros
https://bugs.webkit.org/show_bug.cgi?id=181652

Reviewed by Konstantin Tokarev.

Source/bmalloc:

Disable BEXPORT on Linux ports.

* bmalloc/BExport.h: Check for BUSE(EXPORT_MACROS).
* bmalloc/BPlatform.h: Add BUSE(EXPORT_MACROS) and define it on macOS and iOS.

Source/JavaScriptCore:

* API/JSBase.h: Update a comment.
* inspector/InspectorBackendDispatcher.h: Use a better, yet equivalent, WTF macro.
* runtime/JSExportMacros.h: Simplify the #defines in this file.

Source/WebCore:

Remove a comment.

* platform/PlatformExportMacros.h:

Source/WebCore/PAL:

Remove a comment.

* pal/ExportMacros.h:

Source/WTF:

* wtf/ExportMacros.h: Simplify the #defines in this file.
* wtf/Platform.h: Remove unneeded define. Remove comment that expects all ports to
  eventually enable the export macros. WPE will never want these. We don't currently want
  them for GTK either, though how we link GTK has been in flux recently.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226958 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
Source/JavaScriptCore/API/JSBase.h
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/inspector/InspectorBackendDispatcher.h
Source/JavaScriptCore/runtime/JSExportMacros.h
Source/WTF/ChangeLog
Source/WTF/wtf/ExportMacros.h
Source/WTF/wtf/Platform.h
Source/WebCore/ChangeLog
Source/WebCore/PAL/ChangeLog
Source/WebCore/PAL/pal/ExportMacros.h
Source/WebCore/platform/PlatformExportMacros.h
Source/bmalloc/ChangeLog
Source/bmalloc/bmalloc/BExport.h
Source/bmalloc/bmalloc/BPlatform.h