commit 2b7b4f07ddc2521ee75731fa0864b06b0297938b
parent 8d78a6e687bae84947852f1256a6277b8e15a59f
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Mon, 8 Apr 2024 22:00:32 +0300
-fix _some_ compiler errors
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h
@@ -661,7 +661,7 @@ typedef SOCKET MHD_socket;
#endif /* MHD_NO_DEPRECATION */
#ifndef MHD_DEPR_MACRO_
-# if MHD_GNUC_MINV (4,8) && ! deifned (__clang__) /* GCC >= 4.8 */
+# if MHD_GNUC_MINV (4,8) && ! defined (__clang__) /* GCC >= 4.8 */
/* Print warning when the macro is processed (if not excluded from processing).
* To be used outside other macros */
# define MHD_DEPR_MACRO_(msg) _Pragma(MHD_MACRO_STR_(GCC warning msg))
@@ -2527,7 +2527,7 @@ typedef const struct MHD_Action *
*MHD_RequestCallback)(void *cls,
struct MHD_Request *request,
const struct MHD_String *path,
- enum MHD_Method method,
+ enum MHD_HTTP_Method method,
uint_fast64_t upload_size);
@@ -3570,7 +3570,8 @@ struct MHD_ServerCredentialsContext;
MHD_EXTERN_ enum MHD_StatusCode
MHD_connection_set_psk (struct MHD_ServerCredentialsContext *mscc,
size_t psk_size,
- const /*void? */ char psk[MHD_C99_ (psk_size)]);
+ const /*void? */ char psk[MHD_FN_PAR_DYN_ARR_SIZE_ (
+ psk_size)]);
#define MHD_connection_set_psk_unavailable(mscc) \
MHD_connection_set_psk (mscc, 0, NULL)