summaryrefslogtreecommitdiff
path: root/libavformat/os_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r--libavformat/os_support.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h
index 159d4d7f85..bf2698405b 100644
--- a/libavformat/os_support.h
+++ b/libavformat/os_support.h
@@ -48,6 +48,18 @@ static inline int is_dos_path(const char *path)
return 0;
}
+#if defined(__OS2__)
+#define SHUT_RD 0
+#define SHUT_WR 1
+#define SHUT_RDWR 2
+#endif
+
+#if defined(_WIN32)
+#define SHUT_RD SD_RECEIVE
+#define SHUT_WR SD_SEND
+#define SHUT_RDWR SD_BOTH
+#endif
+
#if defined(_WIN32) && !defined(__MINGW32CE__)
int ff_win32_open(const char *filename, int oflag, int pmode);
#define open ff_win32_open