Avoid forward declare std::exception on clang-cl
It will prevent clang-cl to output the warning [ignored-attributes].
This commit is contained in:
parent
afb85ea34e
commit
3fd8931d9d
|
@ -78,9 +78,12 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
namespace std {
|
||||
class ANTLR4CPP_PUBLIC exception; // Needed for VS 2015.
|
||||
} // namespace std
|
||||
#if defined(_MSC_VER) && !defined(__clang__)
|
||||
// clang-cl should escape this to prevent [ignored-attributes].
|
||||
namespace std {
|
||||
class ANTLR4CPP_PUBLIC exception; // Prevents warning C4275 from MSVC.
|
||||
} // namespace std
|
||||
#endif
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
typedef std::u32string UTF32String;
|
||||
|
|
Loading…
Reference in New Issue