nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* GLIB - Library of useful routines for C programming |
2 | * Copyright (C) 2003 Matthias Clasen |
||
3 | * |
||
4 | * This library is free software; you can redistribute it and/or |
||
5 | * modify it under the terms of the GNU Lesser General Public |
||
6 | * License as published by the Free Software Foundation; either |
||
7 | * version 2 of the License, or (at your option) any later version. |
||
8 | * |
||
9 | * This library is distributed in the hope that it will be useful, |
||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||
12 | * Lesser General Public License for more details. |
||
13 | * |
||
14 | * You should have received a copy of the GNU Lesser General Public |
||
15 | * License along with this library; if not, see <http://www.gnu.org/licenses/>. |
||
16 | */ |
||
17 | #ifndef __G_GNULIB_H__ |
||
18 | |||
19 | #include "config.h" |
||
20 | #include <stdlib.h> |
||
21 | #include "glib/glib.h" |
||
22 | |||
23 | /* Private namespace for gnulib functions */ |
||
24 | #define asnprintf _g_gnulib_asnprintf |
||
25 | #define vasnprintf _g_gnulib_vasnprintf |
||
26 | #define printf_parse _g_gnulib_printf_parse |
||
27 | #define printf_fetchargs _g_gnulib_printf_fetchargs |
||
28 | |||
29 | /* Use GLib memory allocation */ |
||
30 | #undef malloc |
||
31 | #undef realloc |
||
32 | #undef free |
||
33 | #define malloc g_malloc |
||
34 | #define realloc g_realloc |
||
35 | #define free g_free |
||
36 | |||
37 | /* Ensure only C99 snprintf gets used */ |
||
38 | #undef HAVE_SNPRINTF |
||
39 | #ifdef HAVE_C99_SNPRINTF |
||
40 | #define HAVE_SNPRINTF 1 |
||
41 | #else |
||
42 | #define HAVE_SNPRINTF 0 |
||
43 | #endif |
||
44 | |||
45 | |||
46 | #endif /* __G_GNULIB_H__ */ |
||
47 |