| version 1.5, 2003/08/03 21:34:18 |
version 1.6, 2003/08/12 20:50:59 |
|
|
| * |
* |
| * Changelog: |
* Changelog: |
| * 04/05/2003 - created |
* 04/05/2003 - created |
| |
* 12/08/2003 - X11 adaptations |
| * |
* |
| */ |
*/ |
| |
|
| /* $Platon: games/_shared/system.h,v 1.4 2003/06/27 21:57:49 nepto Exp $ */ |
/* $Platon: games/_shared/system.h,v 1.5 2003/08/03 21:34:18 nepto Exp $ */ |
| |
|
| #ifndef _SYSTEM_H |
#ifndef _SYSTEM_H |
| # define _SYSTEM_H |
# define _SYSTEM_H |
|
|
| # define PLATON_SYSTEM_WIN32 1 |
# define PLATON_SYSTEM_WIN32 1 |
| #endif |
#endif |
| |
|
| #ifdef PLATON_SYSTEM_XWINDOWS |
#ifdef PLATON_SYSTEM_X11 |
| # undef PLATON_SYSTEM_XWINDOWS |
# undef PLATON_SYSTEM_X11 |
| |
# define PLATON_SYSTEM_X11 1 |
| #endif |
#endif |
| |
|
| #ifdef PLATON_SYSTEM_SVGALIB |
#ifdef PLATON_SYSTEM_SVGALIB |
|
|
| # define PLATON_SYSTEM_SVGALIB 1 |
# define PLATON_SYSTEM_SVGALIB 1 |
| #endif |
#endif |
| |
|
| #ifdef PLATON_SYSTEM_UNIX |
|
| # undef PLATON_SYSTEM_UNIX |
|
| #endif |
|
| |
|
| /* Second stage: reset unselected systems */ |
/* Second stage: reset unselected systems */ |
| |
|
| #ifndef PLATON_SYSTEM_MSDOS |
#ifndef PLATON_SYSTEM_MSDOS |
|
|
| # define PLATON_SYSTEM_WIN32 0 |
# define PLATON_SYSTEM_WIN32 0 |
| #endif |
#endif |
| |
|
| #ifndef PLATON_SYSTEM_XWINDOWS |
#ifndef PLATON_SYSTEM_X11 |
| # define PLATON_SYSTEM_XWINDOWS 0 |
# define PLATON_SYSTEM_X11 0 |
| #endif |
#endif |
| |
|
| #ifndef PLATON_SYSTEM_SVGALIB |
#ifndef PLATON_SYSTEM_SVGALIB |
| # define PLATON_SYSTEM_SVGALIB 0 |
# define PLATON_SYSTEM_SVGALIB 0 |
| #endif |
|
| |
|
| #ifndef PLATON_SYSTEM_UNIX |
|
| # define PLATON_SYSTEM_UNIX 0 |
|
| #endif |
#endif |
| |
|
| /* 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_SVGALIB + PLATON_SYSTEM_UNIX > 1 |
+ PLATON_SYSTEM_X11 + PLATON_SYSTEM_SVGALIB > 1 |
| # error More than one operating system target was specified. |
# error More than one target system platform was specified. |
| #endif |
#endif |
| |
|
| #endif /* #ifndef _SYSTEM_H */ |
#endif /* #ifndef _SYSTEM_H */ |