diff options
| author | Nikolay Baklicharov <nikolay.baklicharov@gmail.com> | 2018-01-08 22:12:37 +0200 |
|---|---|---|
| committer | Nikolay Baklicharov <nikolay.baklicharov@gmail.com> | 2018-01-08 22:12:37 +0200 |
| commit | 78ae618d8ec3bad4e9dc45f3a382a513ffd09065 (patch) | |
| tree | 68dc343f86562d4305572807b4a9ecc2cc7e43f2 /ports/librtmp/fix_strncasecmp.patch | |
| parent | 31b1989394f801b7d569d0f00a2c00be7d6de96a (diff) | |
| download | vcpkg-78ae618d8ec3bad4e9dc45f3a382a513ffd09065.tar.gz vcpkg-78ae618d8ec3bad4e9dc45f3a382a513ffd09065.zip | |
[librtmp] Update to 2.4
Diffstat (limited to 'ports/librtmp/fix_strncasecmp.patch')
| -rw-r--r-- | ports/librtmp/fix_strncasecmp.patch | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/ports/librtmp/fix_strncasecmp.patch b/ports/librtmp/fix_strncasecmp.patch index c1cadc4ac..3e0c7ea96 100644 --- a/ports/librtmp/fix_strncasecmp.patch +++ b/ports/librtmp/fix_strncasecmp.patch @@ -1,16 +1,20 @@ diff --git a/librtmp/rtmp_sys.h b/librtmp/rtmp_sys.h -index 0874cbe..b43d587 100644 +index 6a3f215..1b5ac2a 100644 --- a/librtmp/rtmp_sys.h +++ b/librtmp/rtmp_sys.h -@@ -37,6 +37,11 @@ +@@ -28,11 +28,13 @@ #include <ws2tcpip.h> - #endif -+#ifdef _MSC_VER -+#define strncasecmp _strnicmp + #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) - #define setsockopt(a,b,c,d,e) (setsockopt)(a,b,c,(const char *)d,(int)e) |
