Blame glib/glib/gnulib/g-gnulib.h

Packit db3073
/* GLIB - Library of useful routines for C programming
Packit db3073
 * Copyright (C) 2003  Matthias Clasen
Packit db3073
 *
Packit db3073
 * This library is free software; you can redistribute it and/or
Packit db3073
 * modify it under the terms of the GNU Lesser General Public
Packit db3073
 * License as published by the Free Software Foundation; either
Packit db3073
 * version 2 of the License, or (at your option) any later version.
Packit db3073
 *
Packit db3073
 * This library is distributed in the hope that it will be useful,
Packit db3073
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit db3073
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit db3073
 * Lesser General Public License for more details.
Packit db3073
 *
Packit db3073
 * You should have received a copy of the GNU Lesser General Public
Packit db3073
 * License along with this library; if not, write to the
Packit db3073
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit db3073
 * Boston, MA 02111-1307, USA.
Packit db3073
 */
Packit db3073
#ifndef __G_GNULIB_H__
Packit db3073
Packit db3073
#include "config.h"
Packit db3073
#include <stdlib.h>
Packit db3073
#include "glib/glib.h"
Packit db3073
Packit db3073
/* Private namespace for gnulib functions */
Packit db3073
#define asnprintf        _g_gnulib_asnprintf
Packit db3073
#define vasnprintf       _g_gnulib_vasnprintf
Packit db3073
#define printf_parse     _g_gnulib_printf_parse
Packit db3073
#define printf_fetchargs _g_gnulib_printf_fetchargs
Packit db3073
Packit db3073
/* Use GLib memory allocation */
Packit db3073
#undef malloc
Packit db3073
#undef realloc
Packit db3073
#undef free
Packit db3073
#define malloc  g_malloc
Packit db3073
#define realloc g_realloc
Packit db3073
#define free    g_free
Packit db3073
Packit db3073
/* Ensure only C99 snprintf gets used */
Packit db3073
#undef HAVE_SNPRINTF
Packit db3073
#ifdef HAVE_C99_SNPRINTF
Packit db3073
#define HAVE_SNPRINTF 1
Packit db3073
#else
Packit db3073
#define HAVE_SNPRINTF 0
Packit db3073
#endif
Packit db3073
Packit db3073
Packit db3073
#endif  /* __G_GNULIB_H__ */
Packit db3073