compat.h 380 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/* 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
Michael Smith's avatar
Michael Smith committed
12
#  define uint32_t unsigned int
13 14 15 16 17
#else
#  ifdef HAVE_STDINT_H
#    include <stdint.h>
#  endif
#endif