aboutsummaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2022-07-11 16:05:11 -0700
committerGuy Harris <gharris@sonic.net>2022-07-13 22:16:42 -0700
commitf451367386299b5d39e9cb9b7efbc3e06d253ff8 (patch)
tree6a0ac3317785c0250956abcc67e3fc4dc5be358f /config.h.in
parent828fd43207e2cc220de8ce964080ef9e83c4bd3c (diff)
downloadlibpcap-f451367386299b5d39e9cb9b7efbc3e06d253ff8.tar.gz
Improve handling of C++.
autotools: Determine the size of a void *; we don't use it now except for the following test, but we will be using it in the future to determine whether we're doing a 32-bit or 64-bit build, so that we can bludgeon pkg-config into finding the right versions of libraries. Check to make sure that the C and C++ compiler don't generate code for different data models; if they do, it means we can't build C and C++ code and combine them, and also means that CMAKE_SIZEOF_VOID_P won't "reflect reality" because there's no single reality to reflect, and we won't be able to use it to determine whether we're doing a 32-bit or 64-bit build (which we may have to do in the future to make pkg-config work correctly on some platforms). There's unlikely to be a mismatch in Haiku, but we do this anyway for future-proofing. CMake: Only check for a C++ compiler on Haiku. Check to make sure that the C and C++ compilers don't generate code for different data models. This is a first step for issue #1112. (cherry picked from commit 914e40f62f3382256cc27d5e171661f92f840f81)
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in
index a7e2ee31..47afb7b0 100644
--- a/config.h.in
+++ b/config.h.in
@@ -322,6 +322,12 @@
/* target host supports RDMA sniffing */
#undef PCAP_SUPPORT_RDMASNIFF
+/* The size of `const void *', as computed by sizeof. */
+#undef SIZEOF_CONST_VOID_P
+
+/* The size of `void *', as computed by sizeof. */
+#undef SIZEOF_VOID_P
+
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS