1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-08 04:04:48 -04:00
icecast-server/src/compat.h
Jack Moffitt 42688a8366 Add check for stdint.h, since Solaris doesn't have it. This is needed
on Linux for uint64_t, but Solaris defines this in sys/types.h.  Use check
where appropriate, and also add typedefs for Win32.

svn path=/trunk/icecast/; revision=2206
2001-10-20 21:28:09 +00:00

17 lines
348 B
C

/* 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
#else
# ifdef HAVE_STDINT_H
# include <stdint.h>
# endif
#endif