source: branches/samba-3.3.x/source/lib/version.c@ 432

Last change on this file since 432 was 223, checked in by Herwig Bauernfeind, 16 years ago

Update Samba 3.3 branch to 3.3.3

File size: 1.4 KB
Line 
1/*
2 Unix SMB/CIFS implementation.
3 Samba Version functions
4
5 Copyright (C) Stefan Metzmacher 2003
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#include "includes.h"
22#include <assert.h>
23
24const char *samba_version_string(void)
25{
26#ifdef SAMBA_VERSION_VENDOR_FUNCTION
27 return SAMBA_VERSION_VENDOR_FUNCTION;
28#else /* SAMBA_VERSION_VENDOR_FUNCTION */
29 #ifdef SAMBA_VERSION_VENDOR_SUFFIX
30 #ifdef SAMBA_VERSION_VENDOR_PATCH
31 return SAMBA_VERSION_OFFICIAL_STRING "-" SAMBA_VERSION_VENDOR_SUFFIX \
32 "-" SAMBA_VERSION_VENDOR_PATCH_STRING;
33 #endif /* SAMBA_VERSION_VENDOR_PATCH */
34 return SAMBA_VERSION_OFFICIAL_STRING "-" SAMBA_VERSION_VENDOR_SUFFIX;
35 #endif /* SAMBA_VERSION_VENDOR_SUFFIX */
36#endif /* SAMBA_VERSION_VENDOR_FUNCTION */
37 return SAMBA_VERSION_OFFICIAL_STRING;
38}
Note: See TracBrowser for help on using the repository browser.