aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libdvdread/msvc.diff
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libdvdread/msvc.diff
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libdvdread/msvc.diff')
-rw-r--r--vcpkg/ports/libdvdread/msvc.diff55
1 files changed, 55 insertions, 0 deletions
diff --git a/vcpkg/ports/libdvdread/msvc.diff b/vcpkg/ports/libdvdread/msvc.diff
new file mode 100644
index 0000000..566bfe3
--- /dev/null
+++ b/vcpkg/ports/libdvdread/msvc.diff
@@ -0,0 +1,55 @@
+diff --git a/msvc/config.h b/msvc/config.h
+index 4e9b60e..2f1e615 100644
+--- a/msvc/config.h
++++ b/msvc/config.h
+@@ -28,7 +28,6 @@
+ #define inline __inline
+ /* #undef size_t */
+
+-#define ssize_t __int64
+
+ #ifndef PATH_MAX
+ #define PATH_MAX MAX_PATH
+@@ -43,14 +42,6 @@
+ #define S_ISCHR(m) 0
+
+ /* Fallback types (very x86-centric, sorry) */
+-typedef unsigned char uint8_t;
+-typedef signed char int8_t;
+-typedef unsigned short uint16_t;
+-typedef signed short int16_t;
+-typedef unsigned int uint32_t;
+-typedef signed int int32_t;
+-typedef unsigned __int64 uint64_t;
+-typedef signed __int64 int64_t;
+-typedef unsigned int uintptr_t;
++#include <stdint.h>
+
+ #endif /* LIBDVDREAD_CONFIG_H */
+diff --git a/src/dvd_reader.c b/src/dvd_reader.c
+index c4d9641..b3b0158 100644
+--- a/src/dvd_reader.c
++++ b/src/dvd_reader.c
+@@ -60,6 +60,7 @@
+
+ #if defined(_WIN32)
+ # include <windows.h>
++# include <winsock2.h>
+ # include "msvc/contrib/win32_cs.h"
+ #endif
+
+diff --git a/src/dvdread/dvd_reader.h b/src/dvdread/dvd_reader.h
+index 5681e0e..6c1cee6 100644
+--- a/src/dvdread/dvd_reader.h
++++ b/src/dvdread/dvd_reader.h
+@@ -24,7 +24,9 @@
+ #define LIBDVDREAD_DVD_READER_H
+
+ #ifdef _MSC_VER
+-#include <config.h>
++#include <windows.h>
++typedef SSIZE_T ssize_t;
++#include <stdint.h>
+
+ #include <stdio.h>
+ #include <stdlib.h>