Changeset 223693 in webkit


Ignore:
Timestamp:
Oct 19, 2017 11:18:32 AM (7 years ago)
Author:
keith_miller@apple.com
Message:

REGRESSION (r223476): WebCore exports symbols with names belonging to other frameworks
https://bugs.webkit.org/show_bug.cgi?id=178424

Reviewed by David Kilzer.

This patch moves the wrapper function sharing the name of the externed function
to the source file and marks it as always inline. Marking it as inline prevents
the framework from exporting it.

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r223621 r223693  
     12017-10-19  Keith Miller  <keith_miller@apple.com>
     2
     3        REGRESSION (r223476): WebCore exports symbols with names belonging to other frameworks
     4        https://bugs.webkit.org/show_bug.cgi?id=178424
     5
     6        Reviewed by David Kilzer.
     7
     8        This patch moves the wrapper function sharing the name of the externed function
     9        to the source file and marks it as always inline. Marking it as inline prevents
     10        the framework from exporting it.
     11
     12        * wtf/cocoa/SoftLinking.h:
     13
    1142017-10-18  Keith Miller  <keith_miller@apple.com>
    215
  • trunk/Source/WTF/wtf/cocoa/SoftLinking.h

    r223476 r223693  
    477477        return softLink##framework##functionName parameterNames; \
    478478    } \
     479    } \
     480    ALWAYS_INLINE resultType functionName parameterDeclarations \
     481    {\
     482        return functionNamespace::softLink##framework##functionName parameterNames; \
    479483    }
    480484
     
    495499        return softLink##framework##functionName parameterNames; \
    496500    } \
    497     } \
    498     resultType functionName parameterDeclarations \
    499     {\
    500         return functionNamespace::softLink##framework##functionName parameterNames; \
    501501    }
    502502
Note: See TracChangeset for help on using the changeset viewer.