Print this page
Update to 1.12.3.
*** 5,18 ****
# define _GNU_SOURCE /* strptime(), getsubopt() */
#endif
#include <stdio.h>
! #define HAVE_STRPTIME
! #define HAVE_GETSUBOPT
! #define HAVE_STRLCAT
! #define HAVE_STRLCPY
#include <sys/types.h>
#if !defined(__BEGIN_DECLS)
# ifdef __cplusplus
--- 5,15 ----
# define _GNU_SOURCE /* strptime(), getsubopt() */
#endif
#include <stdio.h>
! #define VERSION "1.12.3"
#include <sys/types.h>
#if !defined(__BEGIN_DECLS)
# ifdef __cplusplus
*** 27,44 ****
# else
# define __END_DECLS
# endif
#endif
! #if defined(__APPLE__)
! # define htobe32(x) OSSwapHostToBigInt32(x)
! # define betoh32(x) OSSwapBigToHostInt32(x)
! # define htobe64(x) OSSwapHostToBigInt64(x)
# define betoh64(x) OSSwapBigToHostInt64(x)
! #elif defined(__linux__)
! # define betoh32(x) be32toh(x)
# define betoh64(x) be64toh(x)
#endif
#ifndef HAVE_STRLCAT
extern size_t strlcat(char *, const char *, size_t);
#endif
--- 24,43 ----
# else
# define __END_DECLS
# endif
#endif
! #ifndef HAVE_BETOH64
! # if defined(__APPLE__)
# define betoh64(x) OSSwapBigToHostInt64(x)
! # define htobe64(x) OSSwapHostToBigInt64(x)
! # elif defined(__sun)
! # define betoh64(x) BE_64(x)
! # define htobe64(x) BE_64(x)
! # else
# define betoh64(x) be64toh(x)
+ # endif
#endif
#ifndef HAVE_STRLCAT
extern size_t strlcat(char *, const char *, size_t);
#endif