1 /* GLIB - Library of useful routines for C programming
2 * Copyright (C) 2003 Matthias Clasen
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.
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.
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/>.
17 #ifndef __G_GNULIB_H__
21 #include "glib/glib.h"
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
29 /* Use GLib memory allocation */
33 #define malloc g_malloc
34 #define realloc g_realloc
37 /* Ensure only C99 snprintf gets used */
39 #ifdef HAVE_C99_SNPRINTF
40 #define HAVE_SNPRINTF 1
42 #define HAVE_SNPRINTF 0
46 #endif /* __G_GNULIB_H__ */