Don't use #warning (a GCC notion) with MSVC

This commit is contained in:
Nigel Tao committed 2020-06-17 21:24:14 +10:00
1 parent 824b87bb86
commit d377dcaea8
3 files changed
+11 -5

No files matched your search

+5 -2
View File
@@ -31,11 +31,14 @@
#include <stdlib.h>
#include <string.h>
// Note that Clang also defines __GNUC__.
#ifdef __cplusplus
#if __cplusplus >= 201103L
#include <memory>
#else
#warning "Wuffs' C++ code requires -std=c++11 or later"
#elif defined(__GNUC__)
#warning "Wuffs' C++ code expects -std=c++11 or later"
#elif defined(_MSC_VER)
#pragma message("Wuffs' C++ code expects C++11 or later")
#endif
extern "C" {