csver.h Source File (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

csver.h
Go to the documentation of this file.

    00001 /* ATTENTION: This file is generated from csver.h.template,
    00002    make changes _there_ instead */
    00003 /*
    00004     Copyright (C) 1998-2007 by Jorrit Tyberghein
    00005
    00006     This library is free software; you can redistribute it and/or
    00007     modify it under the terms of the GNU Library General Public
    00008     License as published by the Free Software Foundation; either
    00009     version 2 of the License, or (at your option) any later version.
    00010
    00011     This library is distributed in the hope that it will be useful,
    00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00014     Library General Public License for more details.
    00015
    00016     You should have received a copy of the GNU Library General Public
    00017     License along with this library; if not, write to the Free
    00018     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    00019 */
    00020
    00021 #ifndef __CS_CSVER_H__
    00022 #define __CS_CSVER_H__
    00023
    00028 // *** NOTE ***
    00029 // Also update CS/configure.ac, CS/docs/texinfo/version.txi, and
    00030 // CS/mk/autoconf/crystal.m4 when updating the version number.
    00031
    00032 /*
    00033  * Set if this is an unstable (development) CS version.
    00034  * Also affects the version number - unstable versions have the RCS revision
    00035  *  as the 'build' version component.
    00036  */
    00037 //#define CS_VERSION_UNSTABLE
    00038
    00058 //CS_RCSREV_OFFSET 0
    00059 #ifndef CS_VERSION_RCSREV
    00060 #define CS_VERSION_RCSREV       0
    00061 #endif
    00062
    00065
    00066 #define CS_VERSION_NUM_MAJOR    2
    00067
    00068 #define CS_VERSION_NUM_MINOR    0
    00069
    00070 #define CS_VERSION_NUM_RELEASE  0
    00071
    00076 #define CS_VERSION_NUM_BUILD    CS_VERSION_RCSREV
    00077
    00079 #define CS_VERSION_NUM_COMPARABLE(Major,Minor,Release,Build)  \
    00080   ((Major)*10000000 + (Minor)*100000 + (Release)*1000 + (Build))
    00081
    00082 #define CS_VERSION_NUM_COMPARABLE_CURRENT                               \
    00083   CS_VERSION_NUM_COMPARABLE(CS_VERSION_NUM_MAJOR, CS_VERSION_NUM_MINOR, \
    00084     CS_VERSION_NUM_RELEASE, CS_VERSION_NUM_BUILD)
    00085
    00089
    00090 #define CS_VERSION_MAJOR        CS_VER_QUOTE(CS_VERSION_NUM_MAJOR)
    00091
    00092 #define CS_VERSION_MINOR        CS_VER_QUOTE(CS_VERSION_NUM_MINOR)
    00093
    00094 #define CS_VERSION_RELEASE      CS_VER_QUOTE(CS_VERSION_NUM_RELEASE)
    00095
    00096 #define CS_VERSION_BUILD        CS_VER_QUOTE(CS_VERSION_NUM_BUILD)
    00097
    00098 #define CS_RELEASE_DATE         CS_VER_QUOTE_(Tue 03-July-2012)
    00099
    00101 #define CS_VER_QUOTE_(X) #X
    00102 #define CS_VER_QUOTE(X) CS_VER_QUOTE_(X)
    00103
    00104 #if !defined(CS_PLATFORM_NAME)
    00105
    00106 #  define CS_PLATFORM_NAME "MysteryPlatform"
    00107 #  if defined(CS_COMPILER_GCC)
    00108 #  warning Unable to identify platform name using CS_PLATFORM_NAME.
    00109 #  elif defined(CS_COMPILER_MSVC)
    00110 #  pragma message("Unable to identify platform name using CS_PLATFORM_NAME.")
    00111 #  endif
    00112 #endif
    00113 #if !defined(CS_PROCESSOR_NAME)
    00114
    00115 #  define CS_PROCESSOR_NAME "MysteryProcessor"
    00116 #  if defined(CS_COMPILER_GCC)
    00117 #  warning Unable to identify processor name using CS_PROCESSOR_NAME.
    00118 #  elif defined(CS_COMPILER_MSVC)
    00119 #  pragma message("Unable to identify processor name using CS_PROCESSOR_NAME.")
    00120 #  endif
    00121 #endif
    00122 #if !defined(CS_COMPILER_NAME)
    00123
    00124 #  define CS_COMPILER_NAME "MysteryCompiler"
    00125 #  if defined(CS_COMPILER_GCC)
    00126 #  warning Unable to identify compiler name using CS_COMPILER_NAME.
    00127 #  elif defined(CS_COMPILER_MSVC)
    00128 #  pragma message("Unable to identify compiler name using CS_COMPILER_NAME.")
    00129 #  endif
    00130 #endif
    00131
    00133 #define CS_VERSION_NUMBER CS_VERSION_MAJOR "." CS_VERSION_MINOR "." \
    00134   CS_VERSION_RELEASE "." CS_VERSION_BUILD
    00135
    00142 #ifdef CS_VERSION_UNSTABLE
    00143   #define CS_VERSION_NUMBER_COMPATIBLE  CS_VERSION_NUMBER
    00144 #else
    00145   #define CS_VERSION_NUMBER_COMPATIBLE  CS_VERSION_MAJOR "." CS_VERSION_MINOR
    00146 #endif
    00147
    00149 #define CS_VERSION CS_VERSION_NUMBER \
    00150   " [" CS_PLATFORM_NAME "-" \
    00151   CS_PROCESSOR_NAME "(" CS_VER_QUOTE(CS_PROCESSOR_SIZE) ")-" \
    00152   CS_COMPILER_NAME "]"
    00153
    00154 #endif // __CS_CSVER_H__