00001 /* 00002 This file is part of the Meta Object System of 00003 the Amherst Distributed Reality project. 00004 00005 Copyright (C) 2001 Peter Amstutz 00006 (C) 2002 Frank Richter 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Lesser General Public 00010 License as published by the Free Software Foundation; either 00011 version 2 of the License, or (at your option) any later version. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Lesser General Public License for more details. 00017 00018 You should have received a copy of the GNU Lesser General Public 00019 License along with this library; if not, write to the Free Software 00020 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00021 00022 Peter Amstutz <amstutz@cs.umass.edu> 00023 Frank Richter <resqu@gmx.ch> 00024 */ 00025 00026 #ifndef SNPRINTF_H 00027 #define SNPRINTF_H 00028 00029 #if defined(_WIN32) && defined(_MSC_VER) 00030 # include <vos/corelibs/vosconfig-vc7.h> 00031 #else 00032 # include <vos/corelibs/vosconfig.h> 00033 #endif 00034 00035 #ifndef HAVE_SNPRINTF 00036 #ifdef __MINGW32__ 00037 // there's no snprintf() but _snprintf() on MinGW... 00038 //extern int (* snprintf)(char*, size_t, const char*, ...); 00039 #define snprintf _snprintf 00040 #else 00041 VOS_API int snprintf (char *str, size_t count, const char *fmt, ...); 00042 //VOS_API int vsnprintf (char *str, size_t count, const char *fmt, va_list arg); 00043 #endif // __MINGW32__ 00044 #endif // !HAVE_SNPRINTF 00045 #endif // SNPRINTF_H