60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
+
+
+
+
+
+
+
+
-
+
-
+
|
# endif
#else
# include <sys/types.h>
# include <signal.h>
# include <pwd.h>
#endif
/*
** Utility macro to wrap an argument with double quotes.
*/
#if !defined(COMPILER_NAME_STRINGIFY)
# define COMPILER_NAME_STRINGIFY(x) COMPILER_NAME_STRINGIFY1(x)
# define COMPILER_NAME_STRINGIFY1(x) #x
#endif
/*
** Define the compiler variant, used to compile the project
*/
#if !defined(COMPILER_NAME)
# if defined(__DMC__)
# define COMPILER_NAME "dmc"
# elif defined(__POCC__)
# if defined(_M_X64)
# define COMPILER_NAME "pellesc64"
# else
# define COMPILER_NAME "pellesc32"
# endif
# elif defined(_MSC_VER)
# define COMPILER_NAME "msc"
# define COMPILER_NAME "msc-" COMPILER_NAME_STRINGIFY(_MSC_VER)
# elif defined(__MINGW32__)
# define COMPILER_NAME "mingw32"
# define COMPILER_NAME "mingw32-" COMPILER_NAME_STRINGIFY(__MINGW32_VERSION)
# elif defined(_WIN32)
# define COMPILER_NAME "win32"
# elif defined(__GNUC__)
# define COMPILER_NAME "gcc-" __VERSION__
# else
# define COMPILER_NAME "unknown"
# endif
|