diff --git a/docs/c-api/mg_net.h/struct_mg_connection.md b/docs/c-api/mg_net.h/struct_mg_connection.md index 7a549885..6f888b8d 100644 --- a/docs/c-api/mg_net.h/struct_mg_connection.md +++ b/docs/c-api/mg_net.h/struct_mg_connection.md @@ -61,6 +61,8 @@ signature: | #if MG_ENABLE_SSL void *ssl_if_data; /* SSL library data. */ + #else + void *unused_ssl_if_data; /* To keep the size of the structure the same. */ #endif }; --- diff --git a/mongoose.h b/mongoose.h index 6dfc2425..2930d230 100644 --- a/mongoose.h +++ b/mongoose.h @@ -3635,6 +3635,8 @@ struct mg_connection { #if MG_ENABLE_SSL void *ssl_if_data; /* SSL library data. */ +#else + void *unused_ssl_if_data; /* To keep the size of the structure the same. */ #endif }; diff --git a/src/mg_net.h b/src/mg_net.h index 00378882..1ea9cdde 100644 --- a/src/mg_net.h +++ b/src/mg_net.h @@ -155,6 +155,8 @@ struct mg_connection { #if MG_ENABLE_SSL void *ssl_if_data; /* SSL library data. */ +#else + void *unused_ssl_if_data; /* To keep the size of the structure the same. */ #endif };