COMMON: Add GCC_ATLEAST(major, minor) to simplify testing for versions of GCC.

This commit is contained in:
Christoph Mallon
2012-03-17 20:09:45 +01:00
committed by Johannes Schickel
parent 991d5364be
commit 757fa01a28
+3
View File
@@ -23,6 +23,9 @@
#ifndef COMMON_SCUMMSYS_H
#define COMMON_SCUMMSYS_H
// This is a convenience macro to test whether the compiler used is a GCC
// version, which is at least major.minor.
#define GCC_ATLEAST(major, minor) (defined __GNUC__ && (__GNUC__ > (major) || (__GNUC__ == (major) && __GNUC_MINOR__ >= (minor))))
#if defined(_WIN32_WCE) && _WIN32_WCE < 300
#define NONSTANDARD_PORT