aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/examples/dynamic/baz.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/examples/dynamic/baz.hpp b/cmake/examples/dynamic/baz.hpp
index 505a3c4..2fc9b2a 100644
--- a/cmake/examples/dynamic/baz.hpp
+++ b/cmake/examples/dynamic/baz.hpp
@@ -1,6 +1,9 @@
#pragma once
#ifdef _MSC_VER
-__declspec(dllexport)
+#define DLLEXPORT __declspec(dllexport)
+#else
+#define DLLEXPORT
#endif
-void baz();
+
+DLLEXPORT void baz();