Skip to content

Commit 0e399f1

Browse files
mcbartonvgvassilev
authored andcommitted
Use pragma for deprecated warning message MSVC compiler
1 parent 27d762d commit 0e399f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/clang/Interpreter/CppInterOp.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
#define CLANG_CPPINTEROP_H
33

44
#include "CppInterOp/CppInterOp.h"
5+
#if defined(_MSC_VER)
6+
#pragma message( \
7+
"#include <clang/Interpreter/CppInterOp.h> is deprecated; use #include <CppInterOp/CppInterOp.h")
8+
#else
59
#warning \
610
"#include <clang/Interpreter/CppInterOp.h> is deprecated; use #include <CppInterOp/CppInterOp.h"
11+
#endif
712

813
#endif // CLANG_CPPINTEROP_H

0 commit comments

Comments
 (0)