From: Philip Prindeville Date: Sat, 16 Jun 2018 22:44:06 +0000 (-0600) Subject: Get rid of macros which are never used X-Git-Tag: release-2.1.9-beta^2~109 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ab60087c3028f3edf87ec38bf7b84a8ccae8107;p=libevent Get rid of macros which are never used There are no expansions of these macros or tests for their existence. Signed-off-by: Philip Prindeville (cherry picked from commit 755896efe25e5caecd498c08cce072c713720783) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 64ece249..c45e61e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -471,10 +471,8 @@ endif() CHECK_TYPE_SIZE(pid_t EVENT__SIZEOF_PID_T) if(NOT EVENT__SIZEOF_PID_T) - set(EVENT__pid_t "int") set(EVENT__SIZEOF_PID_T ${EVENT__SIZEOF_INT}) else() - set(EVENT__pid_t "pid_t") set(EVENT__SIZEOF_PID_T EVENT__SIZEOF_PID_T) endif() @@ -515,10 +513,6 @@ if (EVENT__HAVE_KQUEUE) endif() endif() -CHECK_SYMBOL_EXISTS(_MINIX "stdio.h" EVENT___MINIX) -CHECK_SYMBOL_EXISTS(_POSIX_1_SOURCE "stdio.h" EVENT___POSIX_1_SOURCE) -CHECK_SYMBOL_EXISTS(_POSIX_SOURCE "stdio.h" EVENT___POSIX_SOURCE) - if(EVENT__HAVE_NETDB_H) list(APPEND CMAKE_EXTRA_INCLUDE_FILES netdb.h) CHECK_TYPE_SIZE("struct addrinfo" EVENT__HAVE_STRUCT_ADDRINFO) diff --git a/WIN32-Code/nmake/event2/event-config.h b/WIN32-Code/nmake/event2/event-config.h index c09ec3f9..af809398 100644 --- a/WIN32-Code/nmake/event2/event-config.h +++ b/WIN32-Code/nmake/event2/event-config.h @@ -331,9 +331,6 @@ #define EVENT__SIZEOF_TIME_T 4 #endif -/* Define to 1 if you have the ANSI C header files. */ -#define EVENT__STDC_HEADERS 1 - /* Define to 1 if you can safely include both and . */ #define EVENT__TIME_WITH_SYS_TIME 1 @@ -345,12 +342,7 @@ /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ -#ifndef _EVENT___cplusplus #define EVENT__inline __inline -#endif - -/* Define to `int' if does not define. */ -/* #undef EVENT__pid_t */ /* Define to `unsigned' if does not define. */ /* #undef EVENT__size_t */ diff --git a/event-config.h.cmake b/event-config.h.cmake index 5c233a3d..6cfbb953 100644 --- a/event-config.h.cmake +++ b/event-config.h.cmake @@ -461,9 +461,6 @@ /* The size of `size_t', as computed by sizeof. */ #define EVENT__SIZEOF_SIZE_T @EVENT__SIZEOF_SIZE_T@ -/* Define to 1 if you have the ANSI C header files. */ -#cmakedefine EVENT__STDC_HEADERS 1 - /* Define to 1 if you can safely include both and . */ #cmakedefine EVENT__TIME_WITH_SYS_TIME 1 @@ -499,9 +496,6 @@ #define EVENT__inline @EVENT__inline@ #endif -/* Define to `int' if does not define. */ -#define EVENT__pid_t @EVENT__pid_t@ - /* Define to `unsigned' if does not define. */ #define EVENT__size_t @EVENT__size_t@