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

Unified Diff: sky/engine/wtf/testing/WTFUnitTestHelpersExport.h

Issue 719063002: Revert "Remove support for MSVC" (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
Index: sky/engine/wtf/testing/WTFUnitTestHelpersExport.h
diff --git a/sky/engine/wtf/testing/WTFUnitTestHelpersExport.h b/sky/engine/wtf/testing/WTFUnitTestHelpersExport.h
index a37ce52e777d0c82cab7ced539847eded4a00606..ea0a77c45241fa1fa54a55865e9e68e322e1391d 100644
--- a/sky/engine/wtf/testing/WTFUnitTestHelpersExport.h
+++ b/sky/engine/wtf/testing/WTFUnitTestHelpersExport.h
@@ -37,7 +37,15 @@
#endif
#if defined(COMPONENT_BUILD)
+#if defined(WIN32)
+#if WTF_UNITTEST_HELPERS_IMPLEMENTATION
+#define WTF_UNITTEST_HELPERS_EXPORT __declspec(dllexport)
+#else
+#define WTF_UNITTEST_HELPERS_EXPORT __declspec(dllimport)
+#endif
+#else // defined(WIN32)
#define WTF_UNITTEST_HELPERS_EXPORT __attribute__((visibility("default")))
+#endif
#else // defined(COMPONENT_BUILD)
#define WTF_UNITTEST_HELPERS_EXPORT
#endif

Powered by Google App Engine
This is Rietveld 408576698