]> Dogcows Code - chaz/yoink/blob - src/version.h
sockets documentation and cleanup
[chaz/yoink] / src / version.h
1
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
4 *
5 * vi:ts=4 sw=4 tw=75
6 *
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
9 *
10 **************************************************************************/
11
12 #ifndef _VERSION_H_
13 #define _VERSION_H_
14
15
16 // the time and date of the compilation
17 extern const char* COMPILE_TIME;
18
19
20 // yoinked from fluxbox
21
22 #ifdef __VERSION__
23 #define COMPILER_VERSION __VERSION__
24
25 #ifdef __GNUG__
26 #define COMPILER_NAME "GCC"
27 #endif // __GNUG__
28
29 #elif (defined(__sgi) || defined(sgi)) && __COMPILER_VERSION
30 #define COMPILER_NAME "SGI"
31 #define COMPILER_VERSION __COMPILER_VERSION
32 #elif defined(__MWERKS__)
33 #define COMPILER_NAME "MWERKS"
34 #define COMPILER_VERSION __MWERKS__
35 #elif defined(__INTEL_COMPILER) || defined(__ICC)
36 #define COMPILER_NAME "ICC"
37 #define COMPILER_VERSION __INTEL_COMPILER
38 #elif defined(__SUNPRO_CC)
39 #define COMPILER_NAME "SUNPRO_CC"
40 #define COMPILER_VERSION __SUNPRO_CC
41 #elif defined(__COMO__) && defined(__COMO_VERSION__)
42 #define COMPILER_NAME "COMO"
43 #define COMPILER_VERSION __COMO_VERSION__
44 #elif defined(_CRAYC) && defined(_REVISION)
45 #define COMPILER_NAME "CRAYC"
46 #define COMPILER_VERSION _REVISION
47 #elif defined(__DECCXX) && defined(__DECCXX)
48 #define COMPILER_NAME "DECCXX"
49 #define COMPILER_VERSION __DECCXX
50 #elif defined(__DCC__)
51 #define COMPILER_NAME "DCC"
52 #define COMPILER_VERSION __VERSION_NUMBER__
53 #endif // __VERSION__
54
55 #ifdef COMPILER_NAME
56 #ifdef COMPILER_VERSION
57 #define COMPILER_STRING COMPILER_NAME" "COMPILER_VERSION
58 #else
59 #define COMPILER_STRING COMPILER_NAME" (unknown version)"
60 #define COMPILER_VERSION "Unknown"
61 #endif // COMPILER_VERSION
62 #else
63 #define COMPILER_STRING "Unknown"
64 #define COMPILER_NAME "Unknown"
65 #endif // COMPILER_NAME
66
67
68 #endif // _VERSION_H_
69
This page took 0.03363 seconds and 4 git commands to generate.