[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 168/335: mhd_sys_options.h: use function attribute "used
From: |
gnunet |
Subject: |
[libmicrohttpd] 168/335: mhd_sys_options.h: use function attribute "used" |
Date: |
Sat, 27 Jul 2024 22:01:04 +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 d454a71f15c26c6fae3d322733eb690e31d9a068
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu May 16 14:12:16 2024 +0200
mhd_sys_options.h: use function attribute "used"
---
src/include/mhd_sys_options.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/include/mhd_sys_options.h b/src/include/mhd_sys_options.h
index eb351e67..3e5ad05c 100644
--- a/src/include/mhd_sys_options.h
+++ b/src/include/mhd_sys_options.h
@@ -55,6 +55,14 @@
# define MHD_EXPORTED __declspec(dllexport)
#endif
+#if defined(HAVE_ATTR_USED) \
+ && (defined(PIC) || defined(DLL_EXPORT) || defined(MHD_W32DLL))
+/* Used externally, only for functions in shared library */
+# define MHD_EXTERN_USED __attribute__((used))
+#else
+# define MHD_EXTERN_USED /* empty */
+#endif
+
#if defined(_MHD_EXTERN) && defined(BUILDING_MHD_LIB)
# undef _MHD_EXTERN
#endif /* _MHD_EXTERN && BUILDING_MHD_LIB */
@@ -64,6 +72,7 @@
/* Building MHD itself */
# define _MHD_EXTERN \
extern MHD_VISIBILITY_EXTERN MHD_EXPORTED
+ extern MHD_VISIBILITY_EXTERN MHD_EXPORTED MHD_EXTERN_USED
# else /* ! BUILDING_MHD_LIB */
/* Test or example code, using MHD as a library */
# define _MHD_EXTERN extern
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 174/335: sys_socket_types.h: new internal header, (continued)
- [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
- [libmicrohttpd] 182/335: compat_calloc.{h,c}: implementation of calloc() replacement, gnunet, 2024/07/27
- [libmicrohttpd] 165/335: configure: detect more function attributes, gnunet, 2024/07/27
- [libmicrohttpd] 161/335: configure: check for more mandatory headers, gnunet, 2024/07/27
- [libmicrohttpd] 171/335: mhd_socket_type.h: new internal header, renamed MHD_socket -> MHD_Socket, gnunet, 2024/07/27
- [libmicrohttpd] 186/335: GENERATED: guard header double inclusion, gnunet, 2024/07/27
- [libmicrohttpd] 178/335: microhttpd2_portability.h: dropped wrong comment, gnunet, 2024/07/27
- [libmicrohttpd] 168/335: mhd_sys_options.h: use function attribute "used",
gnunet <=
- [libmicrohttpd] 188/335: GENERATED: use proper includes in .c, gnunet, 2024/07/27
- [libmicrohttpd] 180/335: microhttpd2_portability.h: simplified macros for MHD_EXTERN_, gnunet, 2024/07/27
- [libmicrohttpd] 187/335: GENERATED: use proper includes in headers, gnunet, 2024/07/27
- [libmicrohttpd] 172/335: sys_base_types.h: new internal header, gnunet, 2024/07/27
- [libmicrohttpd] 192/335: GENERATED: check the state before using the options, gnunet, 2024/07/27
- [libmicrohttpd] 184/335: GENERATED: fixed License version, gnunet, 2024/07/27
- [libmicrohttpd] 179/335: microhttpd2_portability.h: lowered scope of included system headers, minor refactoring, gnunet, 2024/07/27
- [libmicrohttpd] 173/335: sys_bool_type.h: new internal header, gnunet, 2024/07/27
- [libmicrohttpd] 196/335: GENERATED: copy some temporal pointers, gnunet, 2024/07/27
- [libmicrohttpd] 175/335: mhd_sys_options.h: improved doxy, gnunet, 2024/07/27