Navit SVN

/work/compile/navit/src/navit/support/glib/gprintfint.h

00001 /* GLIB - Library of useful routines for C programming
00002  * Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017  * Boston, MA 02111-1307, USA.
00018  */
00019 
00020 /*
00021  * Modified by the GLib Team and others 2002.  See the AUTHORS
00022  * file for a list of people on the GLib Team.  See the ChangeLog
00023  * files for a list of changes.  These files are distributed with
00024  * GLib at ftp://ftp.gtk.org/pub/gtk/. 
00025  */
00026 
00027 #ifndef __G_PRINTFINT_H__
00028 #define __G_PRINTFINT_H__
00029 #ifdef HAVE_API_WIN32_BASE
00030 #include <glibintl.h>
00031 #endif
00032 #ifdef HAVE_API_WIN32_CE
00033 #include "libc.h"
00034 #endif
00035 
00036 #ifdef HAVE_GOOD_PRINTF
00037 
00038 #define _g_printf    printf
00039 #define _g_fprintf   fprintf
00040 #define _g_sprintf   sprintf
00041 #ifdef _MSC_VER
00042 #define _g_snprintf  _snprintf
00043 #else
00044 #define _g_snprintf  snprintf
00045 #endif
00046 
00047 #define _g_vprintf   vprintf
00048 #define _g_vfprintf  vfprintf
00049 #define _g_vsprintf  vsprintf
00050 #define _g_vsnprintf vsnprintf
00051 
00052 #else
00053 
00054 #include "gnulib/printf.h"
00055 
00056 #define _g_printf    _g_gnulib_printf
00057 #define _g_fprintf   _g_gnulib_fprintf
00058 #define _g_sprintf   _g_gnulib_sprintf
00059 #define _g_snprintf  _g_gnulib_snprintf
00060 
00061 #define _g_vprintf   _g_gnulib_vprintf
00062 #define _g_vfprintf  _g_gnulib_vfprintf
00063 #define _g_vsprintf  _g_gnulib_vsprintf
00064 #define _g_vsnprintf _g_gnulib_vsnprintf
00065 
00066 #endif
00067 
00068 #endif /* __G_PRINTF_H__ */
00069