| 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.h> |
| 24 |
|
| 25 |
/* Private namespace for gnulib functions */ |
| 26 |
#define asnprintf __gst_asnprintf |
| 27 |
#define vasnprintf __gst_vasnprintf |
| 28 |
#define printf_parse __gst_printf_parse |
| 29 |
#define printf_fetchargs __gst_printf_fetchargs |
| 30 |
|
| 31 |
/* Use GLib memory allocation */ |
| 32 |
#undef malloc |
| 33 |
#undef realloc |
| 34 |
#undef free |
| 35 |
#define malloc g_malloc |
| 36 |
#define realloc g_realloc |
| 37 |
#define free g_free |
| 38 |
|
| 39 |
/* All platforms we support have C99 snprintf. We never append %n to the |
| 40 |
* reconstructed format string (see vasnprintf.c), so _FORTIFY_SOURCE=2 is |
| 41 |
* fine. */ |
| 42 |
#define HAVE_SNPRINTF 1 |
| 43 |
|
| 44 |
/* based on glib's config.h.win32.in */ |
| 45 |
#ifdef G_OS_WIN32 |
| 46 |
|
| 47 |
/* define to support printing 64-bit integers with format I64 */ |
| 48 |
#define HAVE_INT64_AND_I64 1 |
| 49 |
|
| 50 |
#if defined (_MSC_VER) && _MSC_VER >= 1600 |
| 51 |
#undef HAVE_INTMAX_T |
| 52 |
#define HAVE_INTMAX_T 1 |
| 53 |
#define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 54 |
#endif |
| 55 |
|
| 56 |
#endif /* G_OS_WIN32 */ |
| 57 |
|
| 58 |
#endif /* __G_GNULIB_H__ */ |