/* * games/_shared/ - shared routines for games * * system.h - multiple platform building handler * ____________________________________________________________ * * Developed by Ondrej Jombik * Copyright (c) 2003-2004 Platon SDG, http://platon.sk/ * All rights reserved. * * See README file for more information about this software. * See COPYING file for license information. * * Download the latest version from * http://platon.sk/projects/games/ * * Changelog: * 2003-05-04 - created * 2003-08-12 - X11 adaptations */ /* $Platon: games/_shared/system.h,v 1.6 2003/08/12 20:50:59 nepto Exp $ */ #ifndef _SYSTEM_H # define _SYSTEM_H /* First stage: detect selected system */ #ifdef PLATON_SYSTEM_MSDOS # undef PLATON_SYSTEM_MSDOS # define PLATON_SYSTEM_MSDOS 1 #endif #ifdef PLATON_SYSTEM_WIN32 # undef PLATON_SYSTEM_WIN32 # define PLATON_SYSTEM_WIN32 1 #endif #ifdef PLATON_SYSTEM_X11 # undef PLATON_SYSTEM_X11 # define PLATON_SYSTEM_X11 1 #endif #ifdef PLATON_SYSTEM_SVGALIB # undef PLATON_SYSTEM_SVGALIB # define PLATON_SYSTEM_SVGALIB 1 #endif /* Second stage: reset unselected systems */ #ifndef PLATON_SYSTEM_MSDOS # define PLATON_SYSTEM_MSDOS 0 #endif #ifndef PLATON_SYSTEM_WIN32 # define PLATON_SYSTEM_WIN32 0 #endif #ifndef PLATON_SYSTEM_X11 # define PLATON_SYSTEM_X11 0 #endif #ifndef PLATON_SYSTEM_SVGALIB # define PLATON_SYSTEM_SVGALIB 0 #endif /* Third stage: check if only one system is selected */ #if PLATON_SYSTEM_MSDOS + PLATON_SYSTEM_WIN32 \ + PLATON_SYSTEM_X11 + PLATON_SYSTEM_SVGALIB > 1 # error More than one target system platform was specified. #endif #endif /* #ifndef _SYSTEM_H */