mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Don't use #warning (a GCC notion) with MSVC
This commit is contained in:
1 parent
824b87bb86
commit
d377dcaea8
3 files changed
+11
-5
No files matched your search
@@ -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" {
|
||||
|
||||
Reference in new issue
Block a user