Changeset 122211 in webkit


Ignore:
Timestamp:
Jul 10, 2012 3:49:47 AM (12 years ago)
Author:
Csaba Osztrogonác
Message:

Re-enable declspec(dl{import,export}) for MinGW when using EXPORT_MACROS
https://bugs.webkit.org/show_bug.cgi?id=90612

Patch by Jocelyn Turcotte <jocelyn.turcotte@nokia.com> on 2012-07-10
Reviewed by Csaba Osztrogonác.

MinGW was switched to use auto import/export of symbols on r44184.
From my understanding of the documentation, MinGW will not auto-export symbols
unless there are no explicit declspec(dlexport) in the DLL already.

The issues that originally made us rely on the auto-import feature of MinGW
should now be resolved with the EXPORT_MACROS work. This patch re-enables them.

It also removes the GCC check for internal symbols hiding as the visibility should
already be hidden by default for both MSVC and GCC on Windows anyway.

  • wtf/ExportMacros.h:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r122175 r122211  
     12012-07-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
     2
     3        Re-enable __declspec(dl{import,export}) for MinGW when using EXPORT_MACROS
     4        https://bugs.webkit.org/show_bug.cgi?id=90612
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        MinGW was switched to use auto import/export of symbols on r44184.
     9        From my understanding of the documentation, MinGW will not auto-export symbols
     10        unless there are no explicit __declspec(dlexport) in the DLL already.
     11
     12        The issues that originally made us rely on the auto-import feature of MinGW
     13        should now be resolved with the EXPORT_MACROS work. This patch re-enables them.
     14
     15        It also removes the GCC check for internal symbols hiding as the visibility should
     16        already be hidden by default for both MSVC and GCC on Windows anyway.
     17
     18        * wtf/ExportMacros.h:
     19
    1202012-07-09  No'am Rosenthal  <noam.rosenthal@nokia.com>
    221
  • trunk/Source/WTF/wtf/ExportMacros.h

    r121762 r122211  
    3939// symbol interposition rules.
    4040
    41 #if !PLATFORM(CHROMIUM) && OS(WINDOWS) && !COMPILER(GCC)
     41#if !PLATFORM(CHROMIUM) && OS(WINDOWS)
    4242#define HAVE_INTERNAL_VISIBILITY 1
    4343#define WTF_INTERNAL
     
    5252#if USE(EXPORT_MACROS)
    5353
    54 #if !PLATFORM(CHROMIUM) && OS(WINDOWS) && !COMPILER(GCC)
     54#if !PLATFORM(CHROMIUM) && OS(WINDOWS)
    5555#define WTF_EXPORT __declspec(dllexport)
    5656#define WTF_IMPORT __declspec(dllimport)
Note: See TracChangeset for help on using the changeset viewer.