| Index: Source/wtf/AutodrainedPool.h
|
| diff --git a/Source/wtf/AutodrainedPool.h b/Source/wtf/AutodrainedPool.h
|
| index 955c289d19c7da9e75e52b26606a24f6eab66752..2f84cfff42c156a40b25f394a67f8d46a3a2e55f 100644
|
| --- a/Source/wtf/AutodrainedPool.h
|
| +++ b/Source/wtf/AutodrainedPool.h
|
| @@ -29,7 +29,8 @@
|
| #ifndef AutodrainedPool_h
|
| #define AutodrainedPool_h
|
|
|
| -#include <wtf/Noncopyable.h>
|
| +#include "wtf/Noncopyable.h"
|
| +#include "wtf/WTFExport.h"
|
|
|
| OBJC_CLASS NSAutoreleasePool;
|
|
|
| @@ -38,10 +39,16 @@ namespace WTF {
|
| class AutodrainedPool {
|
| WTF_MAKE_NONCOPYABLE(AutodrainedPool);
|
| public:
|
| - explicit AutodrainedPool(int iterationLimit = 1);
|
| - ~AutodrainedPool();
|
| +#if OS(DARWIN)
|
| + WTF_EXPORT explicit AutodrainedPool(int iterationLimit = 1);
|
| + WTF_EXPORT ~AutodrainedPool();
|
|
|
| - void cycle();
|
| + WTF_EXPORT void cycle();
|
| +#else
|
| + AutodrainedPool() { }
|
| + ~AutodrainedPool() { }
|
| + void cycle() { }
|
| +#endif
|
|
|
| private:
|
| #if OS(DARWIN)
|
| @@ -51,12 +58,6 @@ private:
|
| #endif
|
| };
|
|
|
| -#if !OS(DARWIN)
|
| -inline AutodrainedPool::AutodrainedPool(int) { }
|
| -inline AutodrainedPool::~AutodrainedPool() { }
|
| -inline void AutodrainedPool::cycle() { }
|
| -#endif
|
| -
|
| } // namespace WTF
|
|
|
| using WTF::AutodrainedPool;
|
|
|