Skip to content

Conversation

@mcordova1967
Copy link
Contributor

This change should fix a compile error that happens when using GCC v12.1.0 on Windows x64 (MINGW-64 via MSYS2):

../src/httplib.h: In constructor 'httplib::detail::gzip_decompressor::gzip_decompressor()':
../src/httplib.h:3064:8: error: 'memset' is not a member of 'std'; did you mean 'wmemset'?
3064 | std::memset(&strm_, 0, sizeof(strm_));
| ^~~~~~
| wmemset

The header ´´ should be included for Windows too.

@yhirose yhirose merged commit 47044c0 into yhirose:master May 24, 2022
@yhirose
Copy link
Owner

yhirose commented May 24, 2022

@mcordova1967, thanks for your contribution!

@mcordova1967
Copy link
Contributor Author

mcordova1967 commented May 24, 2022 via email

@yhirose
Copy link
Owner

yhirose commented May 24, 2022

Glad to hear you enjoyed making your first pull request, and it was successful!

ExclusiveOrange pushed a commit to ExclusiveOrange/cpp-httplib-exor that referenced this pull request May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants