-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathversion.c
More file actions
29 lines (29 loc) · 815 Bytes
/
version.c
File metadata and controls
29 lines (29 loc) · 815 Bytes
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
extern const char apple_version[];
#ifndef PROGRAMNAME
#define PROGRAMNAME striptease
#endif
#define STRINGIZE_PN2(x) #x
#define STRINGIZE_PN(x) STRINGIZE_PN2(x)
#if defined(__ppc64__)
#define ARCHNAME " (ppc64)"
#elif defined(__x86_64__)
#define ARCHNAME " (x86_64)"
#elif defined(__ppc__)
#define ARCHNAME " (ppc)"
#elif defined(__i386__)
#define ARCHNAME " (i386)"
#elif defined(__arm__)
#define ARCHNAME " (arm)"
#else
#define ARCHNAME
#endif
#ifdef CCTOOLSVER
#define CCTOOLSVERSTR "-"STRINGIZE_PN(CCTOOLSVER)
#else
#define CCTOOLSVERSTR
#endif
__attribute__((__used__)) const char apple_version[] =
/* Create a string that is compatible with both the ident and what programs */
"@(#)$PROGRAM: " STRINGIZE_PN(PROGRAMNAME) ARCHNAME
" PROJECT: cctools"CCTOOLSVERSTR" http://mackyle.github.io/striptease $"
;