From fcc22a0aa359234aa9c83ffe1940bad1a412c477 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Sat, 11 Mar 2006 13:53:15 +0000 Subject: [PATCH] Added UPX_VERSION_DATE_ISO. committer: mfx 1142085195 +0000 --- src/main.cpp | 1 + src/version.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index c6074403..2bac5710 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1114,6 +1114,7 @@ void upx_sanity_check(void) assert(memcmp(UPX_VERSION_STRING4, UPX_VERSION_STRING, 4) == 0); COMPILE_TIME_ASSERT(sizeof(UPX_VERSION_YEAR) == 4 + 1) assert(strlen(UPX_VERSION_YEAR) == 4); + assert(memcmp(UPX_VERSION_DATE_ISO, UPX_VERSION_YEAR, 4) == 0); assert(memcmp(UPX_VERSION_DATE + strlen(UPX_VERSION_DATE) - 4, UPX_VERSION_YEAR, 4) == 0); #if 1 diff --git a/src/version.h b/src/version.h index e07c2dd9..6758c117 100644 --- a/src/version.h +++ b/src/version.h @@ -2,4 +2,5 @@ #define UPX_VERSION_STRING "1.94 beta" #define UPX_VERSION_STRING4 "1.94" #define UPX_VERSION_DATE "Mar 11th 2006" +#define UPX_VERSION_DATE_ISO "2006-03-11" #define UPX_VERSION_YEAR "2006"