diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-13 08:04:51 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-01-13 08:04:51 +0300 |
commit | f55bd0ceb71b6dfceec5e60610bc2a21c9dcb28a (patch) | |
tree | 61d8ad9f632c98ed47a0be2a5185cb44cb291629 /cmake/examples | |
parent | add clang-format.sh (diff) | |
download | cmake-common-f55bd0ceb71b6dfceec5e60610bc2a21c9dcb28a.tar.gz cmake-common-f55bd0ceb71b6dfceec5e60610bc2a21c9dcb28a.zip |
cmake/examples: work around clang-format oddity
Diffstat (limited to 'cmake/examples')
-rw-r--r-- | cmake/examples/dynamic/baz.hpp | 7 |
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(); |