mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-04 12:50:57 +00:00
Replace #if CXXSTD >= 2011 || EDUKE32_MSVC_PREREQ(1800)
with #ifdef HAVE_CXX11_HEADERS
git-svn-id: https://svn.eduke32.com/eduke32@7557 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
0b14d8cdb5
commit
fb0443db69
3 changed files with 8 additions and 6 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
|
|
||||||
#if CXXSTD >= 2011 || EDUKE32_MSVC_PREREQ(1800)
|
#ifdef HAVE_CXX11_HEADERS
|
||||||
|
|
||||||
// GrowArray - heap-allocated storage that can expand at runtime
|
// GrowArray - heap-allocated storage that can expand at runtime
|
||||||
// requirements: type must work properly with realloc -- otherwise, use std::vector
|
// requirements: type must work properly with realloc -- otherwise, use std::vector
|
||||||
|
|
|
@ -435,6 +435,8 @@ defined __x86_64__ || defined __amd64__ || defined _M_X64 || defined _M_IA64 ||
|
||||||
# include <algorithm>
|
# include <algorithm>
|
||||||
# include <functional>
|
# include <functional>
|
||||||
# include <type_traits>
|
# include <type_traits>
|
||||||
|
// we need this because MSVC does not properly identify C++11 support
|
||||||
|
# define HAVE_CXX11_HEADERS
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -716,7 +718,7 @@ void eduke32_exit_return(int) ATTRIBUTE((noreturn));
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
# if CXXSTD >= 2011 || EDUKE32_MSVC_PREREQ(1800)
|
# ifdef HAVE_CXX11_HEADERS
|
||||||
using std::is_integral;
|
using std::is_integral;
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct is_signed
|
struct is_signed
|
||||||
|
@ -735,7 +737,7 @@ using std::enable_if_t;
|
||||||
using std::conditional_t;
|
using std::conditional_t;
|
||||||
using std::make_signed_t;
|
using std::make_signed_t;
|
||||||
using std::make_unsigned_t;
|
using std::make_unsigned_t;
|
||||||
# elif CXXSTD >= 2011 || EDUKE32_MSVC_PREREQ(1800)
|
# elif defined HAVE_CXX11_HEADERS
|
||||||
template <bool B, class T = void>
|
template <bool B, class T = void>
|
||||||
using enable_if_t = typename std::enable_if<B, T>::type;
|
using enable_if_t = typename std::enable_if<B, T>::type;
|
||||||
template<bool B, class T, class F>
|
template<bool B, class T, class F>
|
||||||
|
@ -796,7 +798,7 @@ typedef size_t reg_t;
|
||||||
typedef ssize_t sreg_t;
|
typedef ssize_t sreg_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if CXXSTD >= 2011 || EDUKE32_MSVC_PREREQ(1800)
|
#ifdef HAVE_CXX11_HEADERS
|
||||||
using native_t = typename integers_of_size<sizeof(reg_t)>::i;
|
using native_t = typename integers_of_size<sizeof(reg_t)>::i;
|
||||||
using unative_t = typename integers_of_size<sizeof(reg_t)>::u;
|
using unative_t = typename integers_of_size<sizeof(reg_t)>::u;
|
||||||
#else
|
#else
|
||||||
|
@ -1099,7 +1101,7 @@ ABSTRACT_DECL float fclamp2(float in, float min, float max) { return in >= max ?
|
||||||
////////// Mathematical operations //////////
|
////////// Mathematical operations //////////
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#if CXXSTD >= 2011 || EDUKE32_MSVC_PREREQ(1800)
|
#ifdef HAVE_CXX11_HEADERS
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct DivResult
|
struct DivResult
|
||||||
{
|
{
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
#ifndef print_h_
|
#ifndef print_h_
|
||||||
#define print_h_
|
#define print_h_
|
||||||
|
|
||||||
#if CXXSTD >= 2011 || EDUKE32_MSVC_PREREQ(1800)
|
#ifdef HAVE_CXX11_HEADERS
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
struct binwrap
|
struct binwrap
|
||||||
|
|
Loading…
Reference in a new issue