summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2007-04-30 15:17:46 (GMT)
committerKristján Valur Jónsson <kristjan@ccpgames.com>2007-04-30 15:17:46 (GMT)
commit7a0da19087bfd5e01bcada885b4d0786749b99cf (patch)
treeb297e4cfebe2fa28eaf0952cfc1765fa13f830c0 /Modules
parent714e19a7bd906c46af0b8258d5d3c41cfe1b7a89 (diff)
downloadcpython-7a0da19087bfd5e01bcada885b4d0786749b99cf.zip
cpython-7a0da19087bfd5e01bcada885b4d0786749b99cf.tar.gz
cpython-7a0da19087bfd5e01bcada885b4d0786749b99cf.tar.bz2
Complete revamp of PCBuild8 directory. Use subdirectories for each project under the main pcbuild solution. Now make extensive use of property sheets to simplify project configuration. x64 build fully supported, and the process for building PGO version (Profiler Guided Optimization) simplified. All projects are now present, except _ssl, which needs to be reimplemented. Also, some of the projects that require external libraries need extra work to fully compile on x64.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/datetimemodule.c2
-rw-r--r--Modules/getbuildinfo.c11
2 files changed, 6 insertions, 7 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index 7487c50..1f13238 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -13,7 +13,9 @@
/* Differentiate between building the core module and building extension
* modules.
*/
+#ifndef Py_BUILD_CORE
#define Py_BUILD_CORE
+#endif
#include "datetime.h"
#undef Py_BUILD_CORE
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c
index a017dab..0f71ca0 100644
--- a/Modules/getbuildinfo.c
+++ b/Modules/getbuildinfo.c
@@ -20,10 +20,7 @@
#endif
#endif
-#ifdef SUBWCREV
#define SVNVERSION "$WCRANGE$$WCMODS?M:$"
-#endif
-
const char *
Py_GetBuildInfo(void)
{
@@ -40,9 +37,9 @@ Py_GetBuildInfo(void)
const char *
_Py_svnversion(void)
{
-#ifdef SVNVERSION
- return SVNVERSION;
-#else
+ /* the following string can be modified by subwcrev.exe */
+ static const char svnversion[] = SVNVERSION;
+ if (!strstr(svnversion, "$"))
+ return svnversion; /* it was interpolated */
return "exported";
-#endif
}