mirror of
https://github.com/webui-dev/webui.git
synced 2024-09-11 22:17:13 +03:00
Update readme about required modifications
This commit is contained in:
parent
c3e2e821c6
commit
561c044924
@ -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
17
src/webview/README.md
Normal 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 */
|
||||
```
|
Loading…
Reference in New Issue
Block a user