gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 136/335: microhttpd.h: backported formatting workaround


From: gnunet
Subject: [libmicrohttpd] 136/335: microhttpd.h: backported formatting workaround
Date: Sat, 27 Jul 2024 22:00:32 +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 c90340dc7642acb9fdf68fae8420299d61e7dc78
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Apr 8 15:49:55 2024 +0200

    microhttpd.h: backported formatting workaround
---
 src/include/microhttpd.h | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 9fd2814b..813515b1 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -80,13 +80,18 @@
 #ifndef MHD_MICROHTTPD_H
 #define MHD_MICROHTTPD_H
 
-#ifdef __cplusplus
-extern "C"
-{
-#if 0                           /* keep Emacsens' auto-indent happy */
-}
-#endif
-#endif
+#ifndef __cplusplus
+#  define MHD_C_DECLRATIONS_START_HERE_   /* Empty */
+#  define MHD_C_DECLRATIONS_FINISH_HERE_  /* Empty */
+#else  /* __cplusplus */
+/* *INDENT-OFF* */
+#  define MHD_C_DECLRATIONS_START_HERE_   extern "C" {
+#  define MHD_C_DECLRATIONS_FINISH_HERE_  }
+/* *INDENT-ON* */
+#endif /* __cplusplus */
+
+
+MHD_C_DECLRATIONS_START_HERE_
 
 
 /**
@@ -6519,11 +6524,6 @@ _MHD_EXTERN enum MHD_Result
 MHD_is_feature_supported (enum MHD_FEATURE feature);
 
 
-#ifdef __cplusplus
-#if 0                           /* keep Emacsens' auto-indent happy */
-{
-#endif
-}
-#endif
+MHD_C_DECLRATIONS_FINISH_HERE_
 
 #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]