Require C++ 14. Finally!

This is the default for gcc >= 6, clang >= 6 and MSVC >= 2019.
This commit is contained in:
Markus F.X.J. Oberhumer 2020-12-07 23:05:13 +01:00
parent 7b0b760d78
commit 51899957a9

View File

@ -29,6 +29,15 @@
#ifndef __UPX_CONF_H
#define __UPX_CONF_H 1
#if defined(__cplusplus)
# if (__cplusplus >= 201402L)
# elif defined(__GNUC__) && (__GNUC__+0 == 4) && (__cplusplus >= 201300L)
# elif defined(_MSC_VER) && defined(_MSVC_LANG) && (_MSVC_LANG+0 >= 201402L)
# else
# error "C++ 14 is required"
# endif
#endif
#include "version.h"
#if !defined(_FILE_OFFSET_BITS)