~ubuntu-branches/ubuntu/trusty/fceux/trusty

« back to all changes in this revision

Viewing changes to src/version.h

  • Committer: Package Import Robot
  • Author(s): Joe Nahmias
  • Date: 2013-04-24 09:52:14 UTC
  • Revision ID: package-import@ubuntu.com-20130424095214-re5s7yh759yosy7n
Tags: upstream-2.2.1+dfsg0
ImportĀ upstreamĀ versionĀ 2.2.1+dfsg0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* FCE Ultra - NES/Famicom Emulator
 
2
 *
 
3
 * Copyright notice for this file:
 
4
 *  Copyright (C) 2001 Aaron Oneal
 
5
 *  Copyright (C) 2002 Xodnizel
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * This program is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License
 
18
 * along with this program; if not, write to the Free Software
 
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
20
 */
 
21
 
 
22
#define PUBLIC_RELEASE          // uncomment this when making a public release, but comment back before committing
 
23
 
 
24
#ifndef __FCEU_VERSION
 
25
#define __FCEU_VERSION
 
26
 
 
27
//todo - everyone will want to support this eventually, i suppose
 
28
#ifdef _MSC_VER
 
29
#include "svnrev.h"
 
30
#else
 
31
#ifdef SVN_REV
 
32
#define SVN_REV_STR SVN_REV
 
33
#else
 
34
#define SVN_REV_STR ""
 
35
#endif
 
36
#endif
 
37
 
 
38
#define FCEU_NAME "FCEUX"
 
39
 
 
40
#define FCEU_FEATURE_STRING ""
 
41
 
 
42
#ifdef _DEBUG
 
43
#define FCEU_SUBVERSION_STRING " debug"
 
44
#elif defined(PUBLIC_RELEASE)
 
45
#define FCEU_SUBVERSION_STRING ""
 
46
#else
 
47
#define FCEU_SUBVERSION_STRING "-interim svn" SVN_REV_STR
 
48
#endif
 
49
 
 
50
#if defined(_MSC_VER)
 
51
#define FCEU_COMPILER ""
 
52
#define FCEU_COMPILER_DETAIL " msvc " _Py_STRINGIZE(_MSC_VER)
 
53
#define _Py_STRINGIZE(X) _Py_STRINGIZE1((X))
 
54
#define _Py_STRINGIZE1(X) _Py_STRINGIZE2 ## X
 
55
#define _Py_STRINGIZE2(X) #X
 
56
//re: http://72.14.203.104/search?q=cache:HG-okth5NGkJ:mail.python.org/pipermail/python-checkins/2002-November/030704.html+_msc_ver+compiler+version+string&hl=en&gl=us&ct=clnk&cd=5
 
57
#else
 
58
// TODO: make for others compilers
 
59
#define FCEU_COMPILER ""
 
60
#define FCEU_COMPILER_DETAIL ""
 
61
#endif
 
62
 
 
63
#define FCEU_VERSION_NUMERIC 22010
 
64
#define FCEU_VERSION_STRING "2.2.1" FCEU_SUBVERSION_STRING FCEU_FEATURE_STRING FCEU_COMPILER
 
65
#define FCEU_NAME_AND_VERSION FCEU_NAME " " FCEU_VERSION_STRING
 
66
 
 
67
#endif