| version 1.1, 2003/05/11 18:50:17 |
version 1.2, 2003/06/22 18:40:34 |
|
|
| * |
* |
| */ |
*/ |
| |
|
| /* $Platon$ */ |
/* $Platon: games/_shared/system.h,v 1.1.1.1 2003/05/11 18:50:17 nepto Exp $ */ |
| |
|
| #ifndef _SYSTEM_H |
#ifndef _SYSTEM_H |
| # define _SYSTEM_H |
# define _SYSTEM_H |
|
|
| # undef PLATON_SYSTEM_XWINDOWS |
# undef PLATON_SYSTEM_XWINDOWS |
| #endif |
#endif |
| |
|
| #ifdef PLATON_SYSTEM_LINUX |
#ifdef PLATON_SYSTEM_SVGALIB |
| # undef PLATON_SYSTEM_LINUX |
# undef PLATON_SYSTEM_SVGALIB |
| # define PLATON_SYSTEM_LINUX 1 |
# define PLATON_SYSTEM_SVGALIB 1 |
| #endif |
#endif |
| |
|
| #ifdef PLATON_SYSTEM_UNIX |
#ifdef PLATON_SYSTEM_UNIX |
|
|
| # define PLATON_SYSTEM_XWINDOWS 0 |
# define PLATON_SYSTEM_XWINDOWS 0 |
| #endif |
#endif |
| |
|
| #ifndef PLATON_SYSTEM_LINUX |
#ifndef PLATON_SYSTEM_SVGALIB |
| # define PLATON_SYSTEM_LINUX 0 |
# define PLATON_SYSTEM_SVGALIB 0 |
| #endif |
#endif |
| |
|
| #ifndef PLATON_SYSTEM_UNIX |
#ifndef PLATON_SYSTEM_UNIX |
|
|
| /* Third stage: check if only one system is selected */ |
/* Third stage: check if only one system is selected */ |
| |
|
| #if PLATON_SYSTEM_MSDOS + PLATON_SYSTEM_WIN32 + PLATON_SYSTEM_XWINDOWS \ |
#if PLATON_SYSTEM_MSDOS + PLATON_SYSTEM_WIN32 + PLATON_SYSTEM_XWINDOWS \ |
| + PLATON_SYSTEM_LINUX + PLATON_SYSTEM_UNIX > 1 |
+ PLATON_SYSTEM_SVGALIB + PLATON_SYSTEM_UNIX > 1 |
| # error More than one operating system target was specified. |
# error More than one operating system target was specified. |
| #endif |
#endif |
| |
|