diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-04-08 15:49:55 +0200 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-04-11 18:29:56 +0200 |
commit | 2e14003ebb43466f79b13da585abec41ec191284 (patch) | |
tree | 10b329361cbded421d4082d91b4a3fda8e6a8e1d | |
parent | 4e056c97946b690fd623e4bea6ef31ea74f66bcf (diff) | |
download | libmicrohttpd-2e14003ebb43466f79b13da585abec41ec191284.tar.gz |
microhttpd.h: workaround for uncrustify bug
-rw-r--r-- | src/include/microhttpd.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index e83fdad3..12b872fc 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 |