node/deps/nghttp2/lib/includes/config.h
Sam Roberts 90cf2d5f00 deps: use nghttp2's config.h on all platforms
Fix warnings about use of htonl(), etc. by including config.h for all
platforms, defining HAVE_ARPA_INET_H on non-Windows, and therefore
including <arpa/inet.h>, which defines the host to network byte order
conversion functions.

PR-URL: https://github.com/nodejs/node/pull/27283
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2019-04-22 12:08:17 -07:00

92 lines
2.3 KiB
C++

/* Hint to the compiler that a function never returns */
#define NGHTTP2_NORETURN
/* Edited to match src/node.h. */
#include <stdint.h>
#ifdef _WIN32
#if !defined(_SSIZE_T_) && !defined(_SSIZE_T_DEFINED)
typedef intptr_t ssize_t;
# define _SSIZE_T_
# define _SSIZE_T_DEFINED
#endif
#else // !_WIN32
# include <sys/types.h> // size_t, ssize_t
#endif // _WIN32
/* Define to 1 if you have the `std::map::emplace`. */
#define HAVE_STD_MAP_EMPLACE 1
/* Define to 1 if you have `libjansson` library. */
/* #undef HAVE_JANSSON */
/* Define to 1 if you have `libxml2` library. */
/* #undef HAVE_LIBXML2 */
/* Define to 1 if you have `spdylay` library. */
/* #undef HAVE_SPDYLAY */
/* Define to 1 if you have `mruby` library. */
/* #undef HAVE_MRUBY */
/* Define to 1 if you have `neverbleed` library. */
/* #undef HAVE_NEVERBLEED */
/* sizeof(int *) */
#define SIZEOF_INT_P 4
/* sizeof(time_t) */
#define SIZEOF_TIME_T 8
/* Define to 1 if you have the `_Exit` function. */
#define HAVE__EXIT 1
/* Define to 1 if you have the `accept4` function. */
/* #undef HAVE_ACCEPT4 */
/* Define to 1 if you have the `initgroups` function. */
#define HAVE_DECL_INITGROUPS 0
/* Define to 1 to enable debug output. */
/* #undef DEBUGBUILD */
/* Define to 1 if you want to disable threads. */
/* #undef NOTHREADS */
/* Define to 1 if you have the <arpa/inet.h> header file. */
#ifndef _WIN32
# define HAVE_ARPA_INET_H 1
#endif
/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1
/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <limits.h> header file. */
#define HAVE_LIMITS_H 1
/* Define to 1 if you have the <netdb.h> header file. */
/* #undef HAVE_NETDB_H */
/* Define to 1 if you have the <netinet/in.h> header file. */
/* #undef HAVE_NETINET_IN_H */
/* Define to 1 if you have the <pwd.h> header file. */
/* #undef HAVE_PWD_H */
/* Define to 1 if you have the <sys/socket.h> header file. */
/* #undef HAVE_SYS_SOCKET_H */
/* Define to 1 if you have the <sys/time.h> header file. */
/* #undef HAVE_SYS_TIME_H */
/* Define to 1 if you have the <syslog.h> header file. */
/* #undef HAVE_SYSLOG_H */
/* Define to 1 if you have the <time.h> header file. */
#define HAVE_TIME_H 1
/* Define to 1 if you have the <unistd.h> header file. */
/* #undef HAVE_UNISTD_H */