mirror of https://github.com/davisking/dlib.git
Added a warning message to remind users to enable C++11 support.
This commit is contained in:
parent
a6dd7d82f2
commit
8061c31acf
|
@ -10,6 +10,14 @@
|
|||
|
||||
// this file contains miscellaneous stuff
|
||||
|
||||
// Give people who forget the -std=c++11 option a reminder
|
||||
#if (defined(__GNUC__) && ((__GNUC__ >= 4 && __GNUC_MINOR__ >= 8) || (__GNUC__ > 4))) || \
|
||||
(defined(__clang__) && ((__clang_major__ >= 3 && __clang_minor__ >= 4) || (__clang_major__ >= 3)))
|
||||
#if __cplusplus < 201103
|
||||
#error "Dlib requires C++11 support. Give your compiler the -std=c++11 option to enable it."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
||||
|
|
Loading…
Reference in New Issue