1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-01-03 14:56:34 -05:00

Fix: compat: Use stdint on Windows if possible

This commit is contained in:
Marvin Scholz 2018-07-09 01:56:40 +02:00
parent db95e9c6fc
commit c6a8859fbc

View File

@ -39,24 +39,29 @@
# endif
#endif
/* Make sure we define 64 bit types */
#ifdef _WIN32
# define PATH_SEPARATOR "\\"
# define size_t unsigned int
# define ssize_t int
# define int64_t __int64
# define uint64_t unsigned __int64
# define uint32_t unsigned int
# define PRIu64 "I64u"
# define PRId64 "I64d"
#else
# define PATH_SEPARATOR "/"
#endif
/* Make sure we define 64 bit types */
#ifdef HAVE_STDINT_H
# include <stdint.h>
#endif
#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if defined(_WIN32) && !defined(HAVE_STDINT_H) && !defined(HAVE_INTTYPES_H)
# define size_t unsigned int
# define ssize_t int
# define int64_t __int64
# define uint64_t unsigned __int64
# define int32_t __int32
# define uint32_t unsigned __int32
# define PRIu64 "I64u"
# define PRId64 "I64d"
#endif
/* some defaults if not provided above */