Use __DATE__ if it's available (e.g. under MSVC++).

This commit is contained in:
Andy McFadden 2003-02-09 03:16:41 +00:00
parent 31bc838dcb
commit edb28053dd
1 changed files with 6 additions and 2 deletions

View File

@ -11,8 +11,12 @@
#include "NufxLibPriv.h"
/* executable was build on or after this date (inserted automatically) */
/* (some compilers e.g. MSC have __DATE__; use that?) */
static const char gNuBuildDate[] = "BUILT"; /* approximate */
#ifdef __DATE__
static const char gNuBuildDate[] = __DATE__;
#else
static const char gNuBuildDate[] = "BUILT";
#endif
static const char gNuBuildFlags[] = "OPTFLAGS";