Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 14. máj 2025

Súbor: [Platon] / games / _shared / system.h (stiahnutie)

Revízia 1.7, Tue Apr 6 09:54:16 2004 UTC (21 years, 1 month ago) by nepto


Zmeny od 1.6: +13 -6 [lines]

Headers update:
    - switch to standard/classic Platon SDG source header
    - bumped copyright year to 2004
    - changelog dates reformatted to new format YYYY-MM-DD

/*
 * games/_shared/ - shared routines for games
 *
 * system.h - multiple platform building handler
 * ____________________________________________________________
 *
 * Developed by Ondrej Jombik <nepto@platon.sk>
 * 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 */


Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok