Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2006)

Unified Diff: Source/wtf/WTFExport.h

Issue 15861022: Build WTF as dll in component build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix AutoDrainedPool ctor and ThreadSpecificThreadExit exports Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/wtf/ThreadingWin.cpp ('k') | Source/wtf/WTFThreadData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/WTFExport.h
diff --git a/Source/core/css/resolver/StyleBuilder.h b/Source/wtf/WTFExport.h
similarity index 78%
copy from Source/core/css/resolver/StyleBuilder.h
copy to Source/wtf/WTFExport.h
index ca5e5753f311abb17b3bc128166e2bfc176be8e6..3fbe52d447bd7db209edf2c8b85fd482336419c2 100644
--- a/Source/core/css/resolver/StyleBuilder.h
+++ b/Source/wtf/WTFExport.h
@@ -28,21 +28,26 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef StyleBuilder_h
-#define StyleBuilder_h
-#include "CSSPropertyNames.h"
+#ifndef WTFExport_h
+#define WTFExport_h
-namespace WebCore {
-
-class CSSValue;
-class StyleResolver;
-
-class StyleBuilder {
-public:
- static bool applyProperty(CSSPropertyID, StyleResolver*, CSSValue*, bool isInitial, bool isInherit);
-};
-
-}
+#if !defined(WTF_IMPLEMENTATION)
+#define WTF_IMPLEMENTATION 0
+#endif
+#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+#if WTF_IMPLEMENTATION
+#define WTF_EXPORT __declspec(dllexport)
+#else
+#define WTF_EXPORT __declspec(dllimport)
#endif
+#else // defined(WIN32)
+#define WTF_EXPORT __attribute__((visibility("default")))
+#endif
+#else // defined(COMPONENT_BUILD)
+#define WTF_EXPORT
+#endif
+
+#endif // WTFExport_h
« no previous file with comments | « Source/wtf/ThreadingWin.cpp ('k') | Source/wtf/WTFThreadData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698