| 1 |
#include <stdio.h> |
| 2 |
#include "patchlevel.h" |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
int main(int argc, char **argv) |
| 24 |
{ |
| 25 |
printf("/* This file created by make_versioninfo.exe */\n"); |
| 26 |
printf("#define FIELD3 %d\n", |
| 27 |
PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL); |
| 28 |
printf("#define MS_DLL_ID \"%d.%d\"\n", |
| 29 |
PY_MAJOR_VERSION, PY_MINOR_VERSION); |
| 30 |
printf("#ifndef _DEBUG\n"); |
| 31 |
printf("#define PYTHON_DLL_NAME \"python%d%d.dll\"\n", |
| 32 |
PY_MAJOR_VERSION, PY_MINOR_VERSION); |
| 33 |
printf("#else\n"); |
| 34 |
printf("#define PYTHON_DLL_NAME \"python%d%d_d.dll\"\n", |
| 35 |
PY_MAJOR_VERSION, PY_MINOR_VERSION); |
| 36 |
printf("#endif\n"); |
| 37 |
return 0; |
| 38 |
} |