Skip to content

Commit ca4d153

Browse files
mcbartonaaronj0
authored andcommitted
Use pragma for deprecated warning message MSVC compiler
1 parent 46ee952 commit ca4d153

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)