From f55bd0ceb71b6dfceec5e60610bc2a21c9dcb28a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 13 Jan 2020 08:04:51 +0300 Subject: cmake/examples: work around clang-format oddity --- cmake/examples/dynamic/baz.hpp | 7 +++++-- 1 file 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(); -- cgit v1.2.3