From 5bfc21cf9e42af13a8d1ad6eb545ab82cb7dbe9d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 6 Jul 2014 14:02:39 -0700 Subject: Clean up handling of missing functions. With autotools, CMake, and nmake, if we have a function, #define HAVE_{function_name_in_all_caps}, otherwise don't #define it. If we provide our own version of a function in libwsutil, make sure we have a header that declares it, and *ONLY* include that header if HAVE_{function_name_in_all_caps} is *NOT* defined, so that we don't have the system declaration and our declaration colliding. Check for inet_aton, strncasecmp, and strptime with CMake, just as we do with autotools. Simplify the addition of {function_name_in_all_caps}_LO to libwsutil in autotools. Change-Id: Id5be5c73f79f81919a3a865324e400eca7b88889 Reviewed-on: https://code.wireshark.org/review/2903 Reviewed-by: Guy Harris --- editcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editcap.c') diff --git a/editcap.c b/editcap.c index 4432d41984..a6d4720e3c 100644 --- a/editcap.c +++ b/editcap.c @@ -77,7 +77,7 @@ #endif #endif -#ifdef NEED_STRPTIME_H +#ifndef HAVE_STRPTIME # include "wsutil/strptime.h" #endif -- cgit v1.2.3