From d0dc2006337e29509415b0df4612842f0105d5f9 Mon Sep 17 00:00:00 2001 From: yhirose Date: Tue, 9 Jun 2020 19:17:58 -0400 Subject: [PATCH] Code format --- httplib.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/httplib.h b/httplib.h index f1a853056e..9d561f8b31 100644 --- a/httplib.h +++ b/httplib.h @@ -86,19 +86,19 @@ // Prefer gnu::deprecated, otherwise gcc complains if we use // [[deprecated]] together with pedantic. #ifndef CPPHTTPLIB_DEPRECATED -# if defined(__has_cpp_attribute) -# if __has_cpp_attribute(gnu::deprecated) -# define CPPHTTPLIB_DEPRECATED [[gnu::deprecated]] -# else -# if __has_cpp_attribute(deprecated) -# define CPPHTTPLIB_DEPRECATED [[deprecated]] -# else -# define CPPHTTPLIB_DEPRECATED -# endif -# endif -# else -# define CPPHTTPLIB_DEPRECATED -# endif +#if defined(__has_cpp_attribute) +#if __has_cpp_attribute(gnu::deprecated) +#define CPPHTTPLIB_DEPRECATED [[gnu::deprecated]] +#else +#if __has_cpp_attribute(deprecated) +#define CPPHTTPLIB_DEPRECATED [[deprecated]] +#else +#define CPPHTTPLIB_DEPRECATED +#endif +#endif +#else +#define CPPHTTPLIB_DEPRECATED +#endif #endif /*