summaryrefslogtreecommitdiffstats
path: root/PC/make_versioninfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'PC/make_versioninfo.c')
-rw-r--r--PC/make_versioninfo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/PC/make_versioninfo.c b/PC/make_versioninfo.c
index 41c026f..b9f9b88 100644
--- a/PC/make_versioninfo.c
+++ b/PC/make_versioninfo.c
@@ -27,7 +27,12 @@ int main(int argc, char **argv)
PY_MICRO_VERSION*1000 + PY_RELEASE_LEVEL*10 + PY_RELEASE_SERIAL);
printf("#define MS_DLL_ID \"%d.%d\"\n",
PY_MAJOR_VERSION, PY_MINOR_VERSION);
+ printf("#ifndef _DEBUG\n");
printf("#define PYTHON_DLL_NAME \"python%d%d.dll\"\n",
PY_MAJOR_VERSION, PY_MINOR_VERSION);
+ printf("#else\n");
+ printf("#define PYTHON_DLL_NAME \"python%d%d_d.dll\"\n",
+ PY_MAJOR_VERSION, PY_MINOR_VERSION);
+ printf("#endif\n");
return 0;
}