Changeset 147884 in webkit


Ignore:
Timestamp:
Apr 7, 2013 4:00:28 PM (11 years ago)
Author:
Patrick Gansterer
Message:

[WIN] Fix problems with export macros of AutodrainedPool
https://bugs.webkit.org/show_bug.cgi?id=114132

Reviewed by Geoffrey Garen.

Exporting an inline function results in an error with the MS compiler.

  • wtf/AutodrainedPool.h:

(AutodrainedPool):
(WTF::AutodrainedPool::AutodrainedPool):
(WTF::AutodrainedPool::~AutodrainedPool):
(WTF::AutodrainedPool::cycle):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r147882 r147884  
     12013-04-07  Patrick Gansterer  <paroga@webkit.org>
     2
     3        [WIN] Fix problems with export macros of AutodrainedPool
     4        https://bugs.webkit.org/show_bug.cgi?id=114132
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Exporting an inline function results in an error with the MS compiler.
     9
     10        * wtf/AutodrainedPool.h:
     11        (AutodrainedPool):
     12        (WTF::AutodrainedPool::AutodrainedPool):
     13        (WTF::AutodrainedPool::~AutodrainedPool):
     14        (WTF::AutodrainedPool::cycle):
     15
    1162013-04-07  Patrick Gansterer  <paroga@webkit.org>
    217
  • trunk/Source/WTF/wtf/AutodrainedPool.h

    r145592 r147884  
    3939    WTF_MAKE_NONCOPYABLE(AutodrainedPool);
    4040public:
     41#if PLATFORM(MAC)
    4142    WTF_EXPORT_PRIVATE explicit AutodrainedPool(int iterationLimit = 1);
    4243    WTF_EXPORT_PRIVATE ~AutodrainedPool();
    43    
     44
    4445    WTF_EXPORT_PRIVATE void cycle();
     46#else
     47    explicit AutodrainedPool(int = 1) { }
     48    ~AutodrainedPool() { }
     49    void cycle() { }
     50#endif
    4551   
    4652private:
     
    5258};
    5359
    54 #if !PLATFORM(MAC)
    55 inline AutodrainedPool::AutodrainedPool(int) { }
    56 inline AutodrainedPool::~AutodrainedPool() { }
    57 inline void AutodrainedPool::cycle() { }
    58 #endif
    59 
    6060} // namespace WTF
    6161
     
    6363
    6464#endif
    65 
    66 
Note: See TracChangeset for help on using the changeset viewer.