• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 #ifndef __G_GNULIB_H__
20 
21 #include "config.h"
22 #include <stdlib.h>
23 #include "glib/glib.h"
24 #include "glib/galias.h"
25 
26 /* Private namespace for gnulib functions */
27 #define asnprintf        _g_gnulib_asnprintf
28 #define vasnprintf       _g_gnulib_vasnprintf
29 #define printf_parse     _g_gnulib_printf_parse
30 #define printf_fetchargs _g_gnulib_printf_fetchargs
31 
32 /* Use GLib memory allocation */
33 #undef malloc
34 #undef realloc
35 #undef free
36 #define malloc  g_malloc
37 #define realloc g_realloc
38 #define free    g_free
39 
40 /* Ensure only C99 snprintf gets used */
41 #undef HAVE_SNPRINTF
42 #ifdef HAVE_C99_SNPRINTF
43 #define HAVE_SNPRINTF 1
44 #else
45 #define HAVE_SNPRINTF 0
46 #endif
47 
48 
49 #endif  /* __G_GNULIB_H__ */
50 
51