contrib: Update SRT to 1.3.1
[vlc.git] / contrib / src / srt / 0003-cmake-Only-install-Windows-headers-in-win-subdir.patch
blob519b0b38748a232e7623466bfbb21c93f9e78134
1 From cfc7871bad28737e5b0480c90643e7d09bf6f5cb Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= <olivier.crete@collabora.com>
3 Date: Mon, 9 Jul 2018 18:16:28 -0400
4 Subject: [PATCH 3/3] cmake: Only install Windows headers in win subdir
6 ---
7 CMakeLists.txt | 1 -
8 srtcore/platform_sys.h | 4 ++--
9 2 files changed, 2 insertions(+), 3 deletions(-)
11 diff --git a/CMakeLists.txt b/CMakeLists.txt
12 index daec198..b197c19 100644
13 --- a/CMakeLists.txt
14 +++ b/CMakeLists.txt
15 @@ -450,7 +450,6 @@ endif()
16 # will now apply to the dependent library.
17 #list(APPEND SOURCES_srt ${SOURCES_haicrypt})
18 set (VIRTUAL_srt $<TARGET_OBJECTS:srt_virtual> $<TARGET_OBJECTS:haicrypt_virtual>)
19 -set (HEADERS_srt ${HEADERS_srt} ${HEADERS_srt_win32})
21 if (srt_libspec_shared)
22 add_library(${TARGET_srt}_shared SHARED ${VIRTUAL_srt})
23 diff --git a/srtcore/platform_sys.h b/srtcore/platform_sys.h
24 index ce546d2..e8e6927 100644
25 --- a/srtcore/platform_sys.h
26 +++ b/srtcore/platform_sys.h
27 @@ -15,9 +15,9 @@
28 #include <ws2tcpip.h>
29 #include <ws2ipdef.h>
30 #include <windows.h>
31 - #include <stdint.h>
32 #if defined(_MSC_VER)
33 - #include <inttypes.h>
34 + #include <win/stdint.h>
35 + #include <win/inttypes.h>
36 #pragma warning(disable:4251)
37 #endif
38 #else
39 --
40 2.17.1