2004-01-28 20:02:12 -05:00
|
|
|
/* Icecast
|
|
|
|
*
|
|
|
|
* This program is distributed under the GNU General Public License, version 2.
|
|
|
|
* A copy of this license is included with this source.
|
|
|
|
*
|
|
|
|
* Copyright 2000-2004, Jack Moffitt <jack@xiph.org,
|
|
|
|
* Michael Smith <msmith@xiph.org>,
|
|
|
|
* oddsock <oddsock@xiph.org>,
|
|
|
|
* Karl Heyes <karl@xiph.org>
|
|
|
|
* and others (see AUTHORS for details).
|
|
|
|
*/
|
|
|
|
|
2004-11-11 17:36:03 -05:00
|
|
|
#ifndef __COMPAT_H__
|
|
|
|
#define __COMPAT_H__
|
|
|
|
|
2001-10-20 17:28:09 -04:00
|
|
|
/* compat.h
|
|
|
|
*
|
|
|
|
* This file contains most of the ugliness for header portability
|
|
|
|
* and common types across various systems like Win32, Linux and
|
|
|
|
* Solaris.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Make sure we define 64 bit types */
|
|
|
|
#ifdef _WIN32
|
|
|
|
# define int64_t __int64
|
|
|
|
# define uint64_t unsigned __int64
|
2004-01-14 20:01:09 -05:00
|
|
|
# define uint32_t unsigned int
|
2001-10-20 17:28:09 -04:00
|
|
|
#else
|
2004-03-09 13:33:06 -05:00
|
|
|
# if defined(HAVE_STDINT_H)
|
2001-10-20 17:28:09 -04:00
|
|
|
# include <stdint.h>
|
2004-03-09 13:33:06 -05:00
|
|
|
# elif defined(HAVE_INTTYPES_H)
|
|
|
|
# include <inttypes.h>
|
2001-10-20 17:28:09 -04:00
|
|
|
# endif
|
|
|
|
#endif
|
2004-11-11 17:36:03 -05:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#define FORMAT_INT64 "%I64d"
|
2005-05-08 09:51:05 -04:00
|
|
|
#define FORMAT_UINT64 "%I64u"
|
2004-11-11 17:36:03 -05:00
|
|
|
#else
|
|
|
|
#define FORMAT_INT64 "%lld"
|
2005-05-08 09:51:05 -04:00
|
|
|
#define FORMAT_UINT64 "%llu"
|
2004-11-11 17:36:03 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __COMPAT_H__ */
|
|
|
|
|