gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 180/335: microhttpd2_portability.h: simplified macros fo


From: gnunet
Subject: [libmicrohttpd] 180/335: microhttpd2_portability.h: simplified macros for MHD_EXTERN_
Date: Sat, 27 Jul 2024 22:01:16 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.

commit 2ef5533654d9c8b824c6f010507944892c7b8483
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu May 16 15:38:17 2024 +0200

    microhttpd2_portability.h: simplified macros for MHD_EXTERN_
---
 src/include/microhttpd2_portability.h | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/include/microhttpd2_portability.h 
b/src/include/microhttpd2_portability.h
index b05d8fed..9778bf40 100644
--- a/src/include/microhttpd2_portability.h
+++ b/src/include/microhttpd2_portability.h
@@ -49,16 +49,12 @@ MHD_C_DECLRATIONS_START_HERE_
         MHD_STATIC_CAST_ (size_t,~MHD_STATIC_CAST_(size_t, 0))
 
 
+/* Define MHD_W32DLL when using MHD as W32 .DLL to speed up linker a little */
 #ifndef MHD_EXTERN_
-#  if ! defined(_WIN32)
+#  if ! defined(_WIN32) || ! defined(MHD_W32LIB)
 #    define MHD_EXTERN_ extern
-#  else /* defined(_WIN32) */
-#    if ! defined(MHD_W32LIB)
-#      define MHD_EXTERN_ extern
-#    else /* defined(_WIN32) && efined(MHD_W32LIB) */
-/* Define MHD_W32DLL when using MHD as W32 .DLL to speed up linker a little */
-#      define MHD_EXTERN_ extern __declspec(dllimport)
-#    endif
+#  else /* defined(_WIN32) && defined(MHD_W32LIB) */
+#    define MHD_EXTERN_ extern __declspec(dllimport)
 #  endif
 #endif
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]