diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/librtmp/fix_strncasecmp.patch | |
Diffstat (limited to 'vcpkg/ports/librtmp/fix_strncasecmp.patch')
| -rw-r--r-- | vcpkg/ports/librtmp/fix_strncasecmp.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/librtmp/fix_strncasecmp.patch b/vcpkg/ports/librtmp/fix_strncasecmp.patch new file mode 100644 index 0000000..3e0c7ea --- /dev/null +++ b/vcpkg/ports/librtmp/fix_strncasecmp.patch @@ -0,0 +1,20 @@ +diff --git a/librtmp/rtmp_sys.h b/librtmp/rtmp_sys.h +index 6a3f215..1b5ac2a 100644 +--- a/librtmp/rtmp_sys.h ++++ b/librtmp/rtmp_sys.h +@@ -28,11 +28,13 @@ + #include <ws2tcpip.h> + + #ifdef _MSC_VER /* MSVC */ ++#if _MSC_VER < 1900 + #define snprintf _snprintf +-#define strcasecmp stricmp +-#define strncasecmp strnicmp + #define vsnprintf _vsnprintf + #endif ++#define strcasecmp _stricmp ++#define strncasecmp _strnicmp ++#endif + + #define GetSockError() WSAGetLastError() + #define SetSockError(e) WSASetLastError(e) |