gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 01/02: mhd_itc_types.h: added macro for static initialis


From: gnunet
Subject: [libmicrohttpd] 01/02: mhd_itc_types.h: added macro for static initialisation
Date: Mon, 21 Sep 2020 10:31:47 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 33628f624579d1ecdc833e91aad3616c85623de9
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Sep 21 11:22:30 2020 +0300

    mhd_itc_types.h: added macro for static initialisation
---
 src/microhttpd/mhd_itc_types.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/src/microhttpd/mhd_itc_types.h b/src/microhttpd/mhd_itc_types.h
index 36d4218b..bb354d37 100644
--- a/src/microhttpd/mhd_itc_types.h
+++ b/src/microhttpd/mhd_itc_types.h
@@ -47,6 +47,12 @@ struct MHD_itc_
   int fd;
 };
 
+/**
+ * Static initialiser for struct MHD_itc_
+ */
+#define MHD_ITC_STATIC_INIT_INVALID { -1 }
+
+
 #elif defined(_MHD_ITC_PIPE)
 /* **************** Standard UNIX ITC implementation by pipe ********** */
 
@@ -58,6 +64,11 @@ struct MHD_itc_
   int fd[2];
 };
 
+/**
+ * Static initialiser for struct MHD_itc_
+ */
+#define MHD_ITC_STATIC_INIT_INVALID { -1, -1 }
+
 
 #elif defined(_MHD_ITC_SOCKETPAIR)
 /* **************** ITC implementation by socket pair ********** */
@@ -72,6 +83,11 @@ struct MHD_itc_
   MHD_socket sk[2];
 };
 
+/**
+ * Static initialiser for struct MHD_itc_
+ */
+#define MHD_ITC_STATIC_INIT_INVALID { MHD_INVALID_SOCKET, MHD_INVALID_SOCKET }
+
 #endif /* _MHD_ITC_SOCKETPAIR */
 
 #endif /* ! MHD_ITC_TYPES_H */

-- 
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]