00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #include <sm_dflt_version.h>
00039
00040
00041 struct VersionInfo
00042 {
00043 const char* pTime;
00044 const char* pDate;
00045 const char* pUpd;
00046 const char* pMinor;
00047 const char* pBuild;
00048 const char* pInpath;
00049 };
00050
00051 static const struct VersionInfo g_aVersionInfo =
00052 {
00053 __TIME__,
00054 __DATE__,
00055 _UPD,
00056 _LAST_MINOR,
00057 _BUILD,
00058 _INPATH
00059 };
00060
00061 #ifdef WNT
00062 __declspec(dllexport) const struct VersionInfo* GetVersionInfo(void);
00063 #endif
00064
00065 #ifdef WNT
00066 __declspec(dllexport) const struct VersionInfo* GetVersionInfo(void)
00067 #else
00068 const struct VersionInfo *GetVersionInfo(void)
00069 #endif
00070 {
00071 return &g_aVersionInfo;
00072 }
00073
00074 #if 0
00075 #include <stdio.h>
00076
00077 int main( int argc, char **argv )
00078 {
00079 const VersionInfo *pInfo = GetVersionInfo();
00080 fprintf( stderr, "Date : %s\n", pInfo->pDate);
00081 fprintf( stderr, "Time : %s\n", pInfo->pTime);
00082 fprintf( stderr, "UPD : %s\n", pInfo->pUpd);
00083 delete pInfo;
00084 return 0;
00085 }
00086 #endif
00087