Update readme about required modifications

This commit is contained in:
Hassan DRAGA 2024-06-09 14:12:04 -04:00
parent c3e2e821c6
commit 561c044924
2 changed files with 31 additions and 0 deletions

View File

@ -2,6 +2,20 @@ Changes currently required when updating the submodule to ensure full direct int
- Prevent warnings for e.g. `malloc` and `snprintf` usage outside civetweb.
```diff
+ // Disable All Warnings
+ #ifdef _MSC_VER
+ #pragma warning(push, 0)
+ #pragma warning(disable: 4996)
+ #elif defined(__clang__)
+ #pragma clang system_header
+ #elif defined(__GNUC__)
+ #pragma GCC system_header
+ #endif
/* Copyright (c) 2013-2024 the Civetweb developers
```
```diff
+ #ifndef NDEBUG
#define malloc DO_NOT_USE_THIS_FUNCTION__USE_mg_malloc

17
src/webview/README.md Normal file
View File

@ -0,0 +1,17 @@
Changes currently required when updating the submodule to ensure full direct interoperability for wrappers:
- Prevent warnings.
```diff
+ // Disable All Warnings
+ #ifdef _MSC_VER
+ #pragma warning(push, 0)
+ #pragma warning(disable: 4996)
+ #elif defined(__clang__)
+ #pragma clang system_header
+ #elif defined(__GNUC__)
+ #pragma GCC system_header
+ #endif
/* this ALWAYS GENERATED file contains the definitions for the interfaces */
```