From e4962bebbc687e93e47d35339b6a2242aefee51e Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sat, 29 Aug 2015 10:06:34 -0400 Subject: Remove unneeded includes and clean up socket feature test --- src/cmd/apps.h | 6 ++++++ src/cmd/credentials.h | 5 ----- src/cmd/tls_client.cpp | 5 +---- src/cmd/tls_server.cpp | 4 +--- 4 files changed, 8 insertions(+), 12 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/apps.h b/src/cmd/apps.h index bcb860fb4..d56fab5ad 100644 --- a/src/cmd/apps.h +++ b/src/cmd/apps.h @@ -68,3 +68,9 @@ class AppRegistrations }; #define REGISTER_APP(nm) AppRegistrations::AppRegistration g_ ## nm ## _registration(#nm, nm) + +#if defined(BOTAN_TARGET_OS_IS_WINDOWS) || defined(BOTAN_TARGET_OS_IS_MINGW) + #undef BOTAN_TARGET_OS_HAS_SOCKETS +#else + #define BOTAN_TARGET_OS_HAS_SOCKETS +#endif diff --git a/src/cmd/credentials.h b/src/cmd/credentials.h index f7109e1a3..06349657d 100644 --- a/src/cmd/credentials.h +++ b/src/cmd/credentials.h @@ -10,11 +10,6 @@ #include #include #include -#include -#include -#include -#include -#include #include #include #include diff --git a/src/cmd/tls_client.cpp b/src/cmd/tls_client.cpp index a5da299c6..f9d32ea6c 100644 --- a/src/cmd/tls_client.cpp +++ b/src/cmd/tls_client.cpp @@ -6,10 +6,7 @@ #include "apps.h" -#if defined(BOTAN_HAS_TLS) \ - && defined(BOTAN_HAS_DSA) \ - && !defined(BOTAN_TARGET_OS_IS_WINDOWS) \ - && !defined(BOTAN_TARGET_OS_IS_MINGW) +#if defined(BOTAN_HAS_TLS) && defined(BOTAN_TARGET_OS_HAS_SOCKETS) #include #include diff --git a/src/cmd/tls_server.cpp b/src/cmd/tls_server.cpp index 744ab5544..cd95cf0d6 100644 --- a/src/cmd/tls_server.cpp +++ b/src/cmd/tls_server.cpp @@ -7,9 +7,7 @@ #include "apps.h" -#if defined(BOTAN_HAS_TLS) && defined(BOTAN_HAS_DSA) \ - && !defined(BOTAN_TARGET_OS_IS_WINDOWS) \ - && !defined(BOTAN_TARGET_OS_IS_MINGW) +#if defined(BOTAN_HAS_TLS) && defined(BOTAN_TARGET_OS_HAS_SOCKETS) #include #include -- cgit v1.2.3