windows-nt/Source/XPSP1/NT/multimedia/directx/misc/verinfo.h
2020-09-26 16:20:57 +08:00

118 lines
2.7 KiB
C

/*
* verinfo.h - header file to define the build version
*
*/
//
// Force all builds to default to private
//
#ifdef OFFICIAL_BUILD
#define OFFICIAL 1
#endif
// Uncomment the following line for a non time bombed build
//#define DX_FINAL_RELEASE 1
#ifndef DX_FINAL_RELEASE
#define DX_EXPIRE_YEAR 2000
#define DX_EXPIRE_MONTH 7 /* Jan=1, Feb=2, etc .. */
#define DX_EXPIRE_DAY 4
#define DX_EXPIRE_TEXT TEXT("This pre-release version of DirectX has expired, please upgrade to the latest version.")
#endif
#define MANVERSION 4
#define MANREVISION 8
#define MANMINORREV 1
#define BUILD_NUMBER 0022
#ifdef RC_INVOKED
#define VERSIONPRODUCTNAME "Microsoft\256 DirectX for Windows\256 95 and 98\0"
#define VERSIONCOPYRIGHT "Copyright \251 Microsoft Corp. 1994-2000\0"
#endif
/***************************************************************************
* DO NOT TOUCH BELOW THIS LINE *
***************************************************************************/
#ifdef RC_INVOKED
#define VERSIONCOMPANYNAME "Microsoft Corporation\0"
/*
* Version flags
*/
//
// these two #define's are for RTM release
//
//#define FINAL
#undef VER_PRIVATEBUILD
#ifndef OFFICIAL
#define VER_PRIVATEBUILD VS_FF_PRIVATEBUILD
#else
#define VER_PRIVATEBUILD 0
#endif
#undef VER_PRERELEASE
#ifndef FINAL
#define VER_PRERELEASE VS_FF_PRERELEASE
#else
#define VER_PRERELEASE 0
#endif
#undef VER_DEBUG
#ifdef DEBUG
#define VER_DEBUG VS_FF_DEBUG
#elif RDEBUG
#define VER_DEBUG VS_FF_DEBUG
#else
#define VER_DEBUG 0
#endif
#define VERSIONFLAGS (VER_PRIVATEBUILD|VER_PRERELEASE|VER_DEBUG)
#define VERSIONFILEFLAGSMASK 0x0030003FL
#endif
//
// Make versioning more automatic
// bugbug clean up for 7.0
//
#ifdef ADJ_MANREVISION
#undef MANREVISION
// extra spaces intended to correct a problem
#define MANREVISION ADJ_MANREVISION
#endif
#if (MANMINORREV < 10)
#define MMR_BPAD "0"
#else
#define MMR_BPAD
#endif
#if (MANREVISION < 10)
#define MR_BPAD "0"
#else
#define MR_BPAD
#endif
#if (BUILD_NUMBER < 10)
#define BN_BPAD "000"
#elif (BUILD_NUMBER < 100)
#define BN_BPAD "00"
#elif (BUILD_NUMBER < 1000)
#define BN_BPAD "0"
#else
#define BN_BPAD ""
#endif
#define BUILD_NUMBER_STR2(x) BN_BPAD #x
#define BUILD_NUMBER_STR1(x) BUILD_NUMBER_STR2(x)
#define BUILD_NUMBER_STR BUILD_NUMBER_STR1(BUILD_NUMBER)
#define VERSION_STR2(w,x,y,z) #w "." MR_BPAD #x "." MMR_BPAD #y "." BN_BPAD #z
#define VERSION_STR1(w,x,y,z) VERSION_STR2(w, x, y, z)
#define VERSIONSTR VERSION_STR1(MANVERSION, MANREVISION, MANMINORREV, BUILD_NUMBER)