ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/tewi/Server/version.c
Revision: 1.2
Committed: Thu Oct 17 10:33:26 2024 UTC (4 weeks, 1 day ago) by nishi
Content type: text/x-c
Branch: MAIN
CVS Tags: v2_05A, v2_05
Changes since 1.1: +3 -1 lines
Log Message:
bsd/os is supported

File Contents

# User Rev Content
1 nishi 1.2 /* $Id: version.c 385 2024-10-17 10:33:12Z nishi $ */
2 nishi 1.1
3     #define SOURCE
4    
5     #include "tw_version.h"
6    
7     const char* tw_version = TW_VERSION;
8    
9     const char* tw_platform =
10     #if defined(PLATFORM)
11     PLATFORM
12     #elif defined(__NetBSD__)
13     "NetBSD"
14     #elif defined(__OpenBSD__)
15     "OpenBSD"
16 nishi 1.2 #elif defined(__bsdi__)
17     "BSD/OS"
18 nishi 1.1 #elif defined(__linux__)
19     "Linux"
20     #elif defined(__OS2__)
21     "OS/2"
22     #elif defined(__NeXT__)
23     "NeXT"
24     #elif defined(__NETWARE__)
25     "NetWare"
26     #elif defined(__DOS__)
27     "DOS"
28     #elif defined(__MINGW32__)
29     "Windows-MinGW32"
30     #elif defined(_MSC_VER)
31     "Windows-VisualC"
32     #elif defined(__BORLANDC__)
33     "Windows-Borland"
34     #elif defined(__WATCOMC__)
35     "Windows-Watcom"
36     #elif defined(__HAIKU__)
37     "Haiku"
38     #elif defined(__CYGWIN__)
39     "Cygwin"
40     #elif defined(_PSP)
41     "PSP"
42     #elif defined(__PPU__)
43     "PS3"
44     #elif defined(__minix)
45     "Minix"
46     #elif defined(__USLC__)
47     "UnixWare"
48     #else
49     "Unix"
50     #endif
51     ;
52    
53     const char* tw_get_version(void) { return tw_version; }
54     const char* tw_get_platform(void) { return tw_platform; }