Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Display build/patch number for the MSVC compiler. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
487e465263fd21c37164a1aa07404871 |
User & Date: | danield 2022-02-09 06:59:26 |
References
2022-02-10
| ||
23:30 | Fix a warning for unused variable 'p' introduced by [487e465263fd21] ... (check-in: 8895d938 user: george tags: trunk) | |
Context
2022-02-09
| ||
20:23 | Cherrypicked [92221aaa192e82] and [7283ae6e120c10] on behalf of George. ... (check-in: f902814d user: stephan tags: trunk) | |
06:59 | Display build/patch number for the MSVC compiler. ... (check-in: 487e4652 user: danield tags: trunk) | |
2022-02-08
| ||
17:14 | Fix compiler warning on builds that lack support for FuseFS. ... (check-in: 398c5cd1 user: drh tags: trunk) | |
Changes
Changes to tools/mkversion.c.
︙ | ︙ | |||
86 87 88 89 90 91 92 | int main(int argc, char *argv[]){ FILE *m,*u,*v; char *z; #if defined(__DMC__) /* e.g. 0x857 */ int i = 0; #endif | | | 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | int main(int argc, char *argv[]){ FILE *m,*u,*v; char *z; #if defined(__DMC__) /* e.g. 0x857 */ int i = 0; #endif int j = 0, x = 0, d = 0, p = 0; size_t n; int vn[3]; char b[1000]; char vx[1000]; if( argc!=4 ){ fprintf(stderr, "Usage: %s manifest.uuid manifest VERSION\n", argv[0]); exit(1); |
︙ | ︙ | |||
198 199 200 201 202 203 204 205 206 | i = (__DMC__ & 0x00F); /* revision */ printf("#define COMPILER_VERSION \"%d.%d.%d\"\n", d, x, i); #elif defined(__POCC__) /* e.g. 700 */ d = (__POCC__ / 100); /* major */ x = (__POCC__ % 100); /* minor */ printf("#define COMPILER_VERSION \"%d.%02d\"\n", d, x); #elif defined(_MSC_VER) /* e.g. 1800 */ d = (_MSC_VER / 100); /* major */ x = (_MSC_VER % 100); /* minor */ | > > | | 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | i = (__DMC__ & 0x00F); /* revision */ printf("#define COMPILER_VERSION \"%d.%d.%d\"\n", d, x, i); #elif defined(__POCC__) /* e.g. 700 */ d = (__POCC__ / 100); /* major */ x = (__POCC__ % 100); /* minor */ printf("#define COMPILER_VERSION \"%d.%02d\"\n", d, x); #elif defined(_MSC_VER) /* e.g. 1800 */ /* _MSC_FULL_VER also defined, e.g. 193030709 */ d = (_MSC_VER / 100); /* major */ x = (_MSC_VER % 100); /* minor */ p = (_MSC_FULL_VER % 100000); /* build (patch) */ printf("#define COMPILER_VERSION \"%d.%02d.%05d\"\n", d, x, p); #endif return 0; } |