*Core: Fixes to compile with GCC 4.6 (RM #52)

git-svn-id: svn://ultimatepp.org/upp/trunk@3331 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-04-10 07:59:23 +00:00
parent 7f2fe06635
commit 294f9a2dbe
3 changed files with 6 additions and 1 deletions

View file

@ -28,7 +28,7 @@ public:
Convert();
virtual ~Convert();
#else
#ifdef __clang__
#if defined(__clang__) || GCC_VERSION >= 40600
Convert(){};
#endif
virtual ~Convert() {}

View file

@ -37,6 +37,7 @@
#include "config.h"
#include <typeinfo>
#include <stddef.h>
#include <math.h>
#include <limits.h>
#include <stdlib.h>

View file

@ -1,6 +1,10 @@
#if __GNUC__
#define COMPILER_GCC 1
#define GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)
#if __WIN32
#define COMPILER_MINGW