mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
7fadd89273
the format specific files. Also add total read/sent stats per mountpoint. Updates the stats every 5 secs currently svn path=/icecast/trunk/icecast/; revision=9241
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
/* 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).
|
|
*/
|
|
|
|
#ifndef __COMPAT_H__
|
|
#define __COMPAT_H__
|
|
|
|
/* 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
|
|
# define uint32_t unsigned int
|
|
#else
|
|
# if defined(HAVE_STDINT_H)
|
|
# include <stdint.h>
|
|
# elif defined(HAVE_INTTYPES_H)
|
|
# include <inttypes.h>
|
|
# endif
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
#define FORMAT_INT64 "%I64d"
|
|
#define FORMAT_UINT64 "%I64u"
|
|
#else
|
|
#define FORMAT_INT64 "%lld"
|
|
#define FORMAT_UINT64 "%llu"
|
|
#endif
|
|
|
|
#endif /* __COMPAT_H__ */
|
|
|