mirror of
https://github.com/webui-dev/webui.git
synced 2024-09-11 22:17:13 +03:00
Add readme about required modifications to civetweb
This commit is contained in:
parent
926dd936cb
commit
cdce8348bb
13
src/civetweb/README.md
Normal file
13
src/civetweb/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
Changes currently required when updating the submodule to ensure full direct interoperability for wrappers:
|
||||
|
||||
- Prevent warnings for e.g. `malloc` and `snprintf` usage outside civetweb.
|
||||
|
||||
```diff
|
||||
+ #ifndef NDEBUG
|
||||
#define malloc DO_NOT_USE_THIS_FUNCTION__USE_mg_malloc
|
||||
#define calloc DO_NOT_USE_THIS_FUNCTION__USE_mg_calloc
|
||||
#define realloc DO_NOT_USE_THIS_FUNCTION__USE_mg_realloc
|
||||
#define free DO_NOT_USE_THIS_FUNCTION__USE_mg_free
|
||||
#define snprintf DO_NOT_USE_THIS_FUNCTION__USE_mg_snprintf
|
||||
+ #endif
|
||||
```
|
Loading…
Reference in New Issue
Block a user