strptime.c needs ctype.h.
[metze/wireshark/wip.git] / wsutil / glib_version_info.c
1 /* glib_version_info.c
2  * Routines to report GLib version information
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21  */
22
23 #include "config.h"
24
25 #include <glib.h>
26
27 #include <wsutil/glib_version_info.h>
28
29 /*
30  * Get the GLib version, and append it to the GString
31  */
32 void
33 get_glib_version_info(GString *str)
34 {
35         /* GLIB */
36         g_string_append(str, "with ");
37         g_string_append_printf(str,
38 #ifdef GLIB_MAJOR_VERSION
39             "GLib %d.%d.%d", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION,
40             GLIB_MICRO_VERSION);
41 #else
42             "GLib (version unknown)");
43 #endif
44 }
45
46 /*
47  * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
48  *
49  * Local variables:
50  * c-basic-offset: 8
51  * tab-width: 8
52  * indent-tabs-mode: t
53  * End:
54  *
55  * vi: set shiftwidth=8 tabstop=8 noexpandtab:
56  * :indentSize=8:tabSize=8:noTabs=false:
57  */