gh-100388: Change undefined __DATE__ to the Unix epoch (#100389)
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
Fix the ``platform._sys_version()`` method when ``__DATE__`` is undefined at
|
||||||
|
buildtime by changing default buildtime datetime string to the UNIX epoch.
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
#ifdef __DATE__
|
#ifdef __DATE__
|
||||||
#define DATE __DATE__
|
#define DATE __DATE__
|
||||||
#else
|
#else
|
||||||
#define DATE "xx/xx/xx"
|
#define DATE "Jan 01 1970"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
#ifdef __TIME__
|
#ifdef __TIME__
|
||||||
#define TIME __TIME__
|
#define TIME __TIME__
|
||||||
#else
|
#else
|
||||||
#define TIME "xx:xx:xx"
|
#define TIME "00:00:00"
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user