ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

c++11-compat.h

Go to the documentation of this file.
00001 /* ScummVM - Graphic Adventure Engine
00002  *
00003  * ScummVM is the legal property of its developers, whose names
00004  * are too numerous to list here. Please refer to the COPYRIGHT
00005  * file distributed with this source distribution.
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00020  *
00021  */
00022 
00023 #ifndef COMMON_CPP11_COMPAT_H
00024 #define COMMON_CPP11_COMPAT_H
00025 
00026 #if __cplusplus >= 201103L
00027 #error "c++11-compat.h included when C++11 is available"
00028 #endif
00029 
00030 //
00031 // Custom nullptr replacement. This is not type safe as the real C++11 nullptr
00032 // though.
00033 //
00034 #if !defined(nullptr)  // XCode 5.0.1 has __cplusplus=199711 but defines this
00035 // MSVC 2010 and newer fully support nullptr: http://msdn.microsoft.com/en-us/library/hh567368.aspx
00036 #if !defined(_MSC_VER) || _MSC_VER < 1600
00037 #define nullptr 0
00038 #endif
00039 #endif
00040 
00041 //
00042 // Replacement for the override keyword. This allows compilation of code
00043 // which uses it, but does not feature any semantic.
00044 //
00045 // MSVC 2012 and newer fully support override: http://msdn.microsoft.com/en-us/library/hh567368.aspx
00046 #if !defined(_MSC_VER) || _MSC_VER < 1700
00047 #define override
00048 #endif
00049 
00050 #endif


Generated on Sat May 25 2019 05:00:39 for ResidualVM by doxygen 1.7.1
curved edge   curved edge