aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cmake/examples/dynamic
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-01-13 08:04:51 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-01-13 08:04:51 +0300
commitf55bd0ceb71b6dfceec5e60610bc2a21c9dcb28a (patch)
tree61d8ad9f632c98ed47a0be2a5185cb44cb291629 /cmake/examples/dynamic
parentadd clang-format.sh (diff)
downloadcmake-common-f55bd0ceb71b6dfceec5e60610bc2a21c9dcb28a.tar.gz
cmake-common-f55bd0ceb71b6dfceec5e60610bc2a21c9dcb28a.zip
cmake/examples: work around clang-format oddity
Diffstat (limited to 'cmake/examples/dynamic')
-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();