From 174ca98d1be4be9880d4bffe85bfada0b87bcea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joa=CC=83o=20Matos?= Date: Fri, 27 Mar 2020 10:42:18 +0000 Subject: [PATCH] Guard C++/CLI specific code in CppSharp.c. --- include/CppSharp.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/CppSharp.h b/include/CppSharp.h index 7d1bf722..fdcc0ea8 100644 --- a/include/CppSharp.h +++ b/include/CppSharp.h @@ -8,6 +8,8 @@ // ------------------------------------------------------------------------------------------- // #pragma once +#if defined(__cplusplus_cli) + #include #include #include @@ -291,3 +293,5 @@ namespace msclr { }; } } // namespace msclr + +#endif