Including winsock2.h or windows.h without WIN32_LEAN_AND_MEAN cause bzlib.h to parse as nonsense, due to an instance of #define char small in rpcndr.h. See: https://stackoverflow.com/a/27794577
Showing the changes to libavfilter (1 of 9 files). Show all
Unified · Split
| @@ -22,7 +22,6 @@ · 21 unmodified lines | |||
| 22 | #undef _WIN32_WINNT | 22 | #undef _WIN32_WINNT |
| 23 | #define _WIN32_WINNT 0x0A00 | 23 | #define _WIN32_WINNT 0x0A00 |
| 24 | #endif | 24 | #endif |
| 25 | #define WIN32_LEAN_AND_MEAN | ||
| 26 | 25 | ||
| 27 | #include <windows.h> | 26 | #include <windows.h> |
| 28 | 27 | ||