Mercurial > hg > th-libs
changeset 623:893b2deeb5be
Get rid of some useless includes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 17 Jan 2020 04:16:48 +0200 |
parents | 6d99150a8f89 |
children | 36c50873e02c |
files | th_config.h th_util.h |
diffstat | 2 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/th_config.h Fri Jan 17 04:16:32 2020 +0200 +++ b/th_config.h Fri Jan 17 04:16:48 2020 +0200 @@ -10,7 +10,6 @@ #ifndef TH_CONFIG_H #define TH_CONFIG_H -#include "th_util.h" #include "th_datastruct.h" #include "th_ioctx.h"
--- a/th_util.h Fri Jan 17 04:16:32 2020 +0200 +++ b/th_util.h Fri Jan 17 04:16:48 2020 +0200 @@ -19,17 +19,14 @@ #include <stdarg.h> #include <stdlib.h> #include <unistd.h> -#include <sys/types.h> #ifndef HAVE_NO_ASSERT # include <assert.h> #endif -#ifdef HAVE_STRING_H +#if defined(HAVE_STRING_H) # include <string.h> -#else -# ifdef HAVE_STRINGS_H -# include <strings.h> -# endif +#elif defined(HAVE_STRINGS_H) +# include <strings.h> #endif #ifdef HAVE_MEMORY_H