From 4252a60af9d0ab462b71a4751e98972094920faf Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Mon, 10 Jul 2017 13:44:01 +0000 Subject: [PATCH] Add an error directive to C++ standards versions < 2011. git-svn-id: https://svn.eduke32.com/eduke32@6352 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/build.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/build/include/build.h b/source/build/include/build.h index ca36962ec..9c070ece8 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -10,6 +10,10 @@ #ifndef build_h_ #define build_h_ +#if !defined __cplusplus || (__cplusplus < 201103L && !defined _MSC_VER) +# error C++11 or greater is required. +#endif + #include "compat.h" #include "pragmas.h" #include "glbuild.h"