mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
COMMON: Add GCC_ATLEAST(major, minor) to simplify testing for versions of GCC.
This commit is contained in:
committed by
Johannes Schickel
parent
991d5364be
commit
757fa01a28
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user