[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 169/335: mhd_sys_options.h: added support for more attri
From: |
gnunet |
Subject: |
[libmicrohttpd] 169/335: mhd_sys_options.h: added support for more attributes for functions |
Date: |
Sat, 27 Jul 2024 22:01:05 +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 9949be1c99451416fb6e5b9a7d4eb83d4e39645f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu May 16 14:34:01 2024 +0200
mhd_sys_options.h: added support for more attributes for functions
---
src/include/mhd_sys_options.h | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/src/include/mhd_sys_options.h b/src/include/mhd_sys_options.h
index 3e5ad05c..c6be865b 100644
--- a/src/include/mhd_sys_options.h
+++ b/src/include/mhd_sys_options.h
@@ -79,6 +79,29 @@
# endif /* ! BUILDING_MHD_LIB */
#endif /* ! _MHD_EXTERN */
+#ifdef HAVE_ATTR_VISIBILITY_INTERNAL
+/* To be used with internal non-static functions */
+# define MHD_VISIBILITY_INTERNAL __attribute__((visibility ("internal")))
+#else
+/* To be used with internal non-static functions */
+# define MHD_VISIBILITY_INTERNAL /* empty */
+#endif
+
+#ifdef HAVE_ATTR_PURE
+# define MHD_FN_PURE_ __attribute__((pure))
+#else
+# define MHD_FN_PURE_ /* empty */
+#endif
+
+#ifdef HAVE_ATTR_CONST
+# define MHD_FN_CONST_ __attribute__((const))
+#else
+# define MHD_FN_CONST_ MHD_FN_PURE_
+#endif
+
+/* To be used with internal non-static functions */
+#define MHD_INTERNAL MHD_VISIBILITY_INTERNAL
+
/* Some platforms (FreeBSD, Solaris, W32) allow to override
default FD_SETSIZE by defining it before including
headers. */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 148/335: Fixed all doxygen warnings, (continued)
- [libmicrohttpd] 148/335: Fixed all doxygen warnings, gnunet, 2024/07/27
- [libmicrohttpd] 162/335: configure: check for more optional headers, gnunet, 2024/07/27
- [libmicrohttpd] 150/335: microhttpd2.h: fixed all g++ warnings and errors, gnunet, 2024/07/27
- [libmicrohttpd] 146/335: microhttpd2.h: more fixes, gnunet, 2024/07/27
- [libmicrohttpd] 163/335: configure: use more headers when checking for calloc(), gnunet, 2024/07/27
- [libmicrohttpd] 151/335: spellcheck, gnunet, 2024/07/27
- [libmicrohttpd] 166/335: renamed mhd_sys_options.h -> mhd_sys_options.h, gnunet, 2024/07/27
- [libmicrohttpd] 164/335: configure: reworked _MHD_EXTERN definition, gnunet, 2024/07/27
- [libmicrohttpd] 149/335: microhttpd2.h: fixed all GCC warnings and errors, gnunet, 2024/07/27
- [libmicrohttpd] 153/335: say it is STF-funded, gnunet, 2024/07/27
- [libmicrohttpd] 169/335: mhd_sys_options.h: added support for more attributes for functions,
gnunet <=
- [libmicrohttpd] 158/335: add response option generation;, gnunet, 2024/07/27
- [libmicrohttpd] 156/335: generator v1, gnunet, 2024/07/27
- [libmicrohttpd] 170/335: mhd_sys_options.h: renamed _MHD_EXTERN -> MHD_EXTERN_, gnunet, 2024/07/27
- [libmicrohttpd] 167/335: mhd_sys_options.h: formatting, gnunet, 2024/07/27
- [libmicrohttpd] 159/335: remove dependency on recutils and libjansson, gnunet, 2024/07/27
- [libmicrohttpd] 160/335: This API is TERRIBLE., gnunet, 2024/07/27
- [libmicrohttpd] 174/335: sys_socket_types.h: new internal header, gnunet, 2024/07/27
- [libmicrohttpd] 176/335: mhd_public_api.h: new internal header, gnunet, 2024/07/27
- [libmicrohttpd] 177/335: sys_malloc.h: new internal header, gnunet, 2024/07/27
- [libmicrohttpd] 185/335: GENERATED: fixed comment in comment, gnunet, 2024/07/27