]>
Commit | Line | Data |
---|---|---|
ae81e935 CP |
1 | #ifndef __VERSION_H |
2 | ||
3 | #define __VERSION_H | |
4 | ||
70b0a4e5 | 5 | #ifndef BUILDID |
16fc8bc1 CP |
6 | #define _BUILDID "unknown" |
7 | #else | |
138b0f10 CP |
8 | #define XStringify(x) Stringify(x) |
9 | #define Stringify(x) #x | |
10 | #define _BUILDID "" XStringify(BUILDID) "" | |
70b0a4e5 CP |
11 | #endif |
12 | ||
16fc8bc1 | 13 | #define MODULE_VERSION(id) const char *_version(void) { return (id[0]=='\0')?_BUILDID:(id "/" _BUILDID); }; |
ae81e935 CP |
14 | |
15 | #endif |