-
Notifications
You must be signed in to change notification settings - Fork 4
/
version.h
82 lines (69 loc) · 2.54 KB
/
version.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/***************************************************************************
TextEditor.mcc - Textediting MUI Custom Class
Copyright (C) 1997-2000 Allan Odgaard
Copyright (C) 2005-2018 TextEditor.mcc Open Source Team
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
TextEditor class Support Site: http://www.sf.net/projects/texteditor-mcc
$Id$
***************************************************************************/
#ifndef _VERSION_H_
#define _VERSION_H_
// transforms a define into a string
#define STR(x) STR2(x)
#define STR2(x) #x
// for setting all necessary version information
#define LIB_VERSION 15
#define LIB_REVISION 50
#define LIB_DATE "15.01.2018"
#define LIB_COPYRIGHT "Copyright (C) 2005-2018 TextEditor.mcc Open Source Team"
// set the LIB_REV_STRING
#define LIB_REV_STRING STR(LIB_VERSION) "." STR(LIB_REVISION)
// identify the system we are compiling for
#if defined(__amigaos4__)
#define SYSTEM "AmigaOS4"
#define SYSTEMSHORT "OS4"
#elif defined(__MORPHOS__)
#define SYSTEM "MorphOS"
#define SYSTEMSHORT "MOS"
#elif defined(__AROS__)
#define SYSTEM "AROS"
#define SYSTEMSHORT SYSTEM
#elif defined(__AMIGA__)
#define SYSTEM "AmigaOS3"
#define SYSTEMSHORT "OS3"
#else
#warning "Unsupported System - check SYSTEM define"
#define SYSTEM "???"
#define SYSTEMSHORT "???"
#endif
// identify the CPU model
#if defined(__PPC__) || defined(__powerpc__)
#define CPU "PPC"
#elif defined(_M68060) || defined(__M68060) || defined(__mc68060)
#define CPU "m68060"
#elif defined(_M68040) || defined(__M68040) || defined(__mc68040)
#define CPU "m68040"
#elif defined(_M68030) || defined(__M68030) || defined(__mc68030)
#define CPU "m68030"
#elif defined(_M68020) || defined(__M68020) || defined(__mc68020)
#define CPU "m68k"
#elif defined(_M68000) || defined(__M68000) || defined(__mc68000)
#define CPU "m68000"
#elif defined(__i386__)
#define CPU "x86"
#elif defined(__x86_64__)
#define CPU "x86_64"
#elif defined(__arm__)
#define CPU "ARM"
#else
#warning "Unsupported CPU model - check CPU define"
#define CPU "???"
#endif
#endif // _VERSION_H_