merge the formfield patch from ooo-build
[ooovba.git] / solenv / src / version.c
blob25ac3bc0abbaeee99b8bd67ecf622fcd53cf736d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: version.c,v $
10 * $Revision: 1.9 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
33 #include <_version.h>
36 struct VersionInfo
38 const char* pTime;
39 const char* pDate;
40 const char* pUpd;
41 const char* pMinor;
42 const char* pBuild;
43 const char* pInpath;
46 static const struct VersionInfo g_aVersionInfo =
48 __TIME__,
49 __DATE__,
50 _UPD,
51 _LAST_MINOR,
52 _BUILD,
53 _INPATH
56 #if defined(WNT) || defined(OS2)
57 __declspec(dllexport) const struct VersionInfo* GetVersionInfo(void);
58 #endif
60 #if defined(WNT) || defined(OS2)
61 __declspec(dllexport) const struct VersionInfo* GetVersionInfo(void)
62 #else
63 const struct VersionInfo *GetVersionInfo(void)
64 #endif
66 return &g_aVersionInfo;
69 #if 0
70 #include <stdio.h>
72 int main( int argc, char **argv )
74 const VersionInfo *pInfo = GetVersionInfo();
75 fprintf( stderr, "Date : %s\n", pInfo->pDate);
76 fprintf( stderr, "Time : %s\n", pInfo->pTime);
77 fprintf( stderr, "UPD : %s\n", pInfo->pUpd);
78 delete pInfo;
79 return 0;
81 #endif