59 lines
1.1 KiB
C
59 lines
1.1 KiB
C
|
|
||
|
// stdver.h
|
||
|
|
||
|
// Copyright (C) 1993, Microsoft Corporation
|
||
|
|
||
|
// Purpose:
|
||
|
// define the version string for display.
|
||
|
|
||
|
// Revision History:
|
||
|
|
||
|
// [] 09-Jul-1993 [dans] Created
|
||
|
|
||
|
|
||
|
#if !defined(_stdver_h)
|
||
|
#define _stdver_h 1
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
|
||
|
// defines for version string
|
||
|
|
||
|
#if (rmm <= 9)
|
||
|
#define rmmpad "0"
|
||
|
#else
|
||
|
#define rmmpad
|
||
|
#endif
|
||
|
|
||
|
#if (rup <= 9)
|
||
|
#define ruppad "000"
|
||
|
#elif (rup <= 99)
|
||
|
#define ruppad "00"
|
||
|
#elif (rup <= 999)
|
||
|
#define ruppad "0"
|
||
|
#else
|
||
|
#define ruppad
|
||
|
#endif
|
||
|
|
||
|
#if ( rup == 0 )
|
||
|
#define SZVER1(a,b) #a "." rmmpad #b
|
||
|
#define SZVER2(a,b) SZVER1(a, b)
|
||
|
#define SZVER SZVER2(rmj,rmm)
|
||
|
#else
|
||
|
#define SZVER1(a,b,c) #a "." rmmpad #b "." ruppad #c
|
||
|
#define SZVER2(a,b,c) SZVER1(a, b, c)
|
||
|
#define SZVER SZVER2(rmj,rmm,rup)
|
||
|
#endif
|
||
|
|
||
|
#define FULLSZVER1(a,b,c) #a "." rmmpad #b "." ruppad #c
|
||
|
#define FULLSZVER2(a,b,c) FULLSZVER1(a, b, c)
|
||
|
#define FULLSZVER FULLSZVER2(rmj,rmm,rup)
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} // extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#endif
|