History

os_support: Choose between direct.h and io.h using a configure check

Martin Storsjö committed 14 years ago

Commit ca6b5441 parent 7b07fab2 files · +5 −3Browse files

Unified · Split

2 files
  1. configure +2 −0
  2. libavformat/os_support.h +3 −3
configure+2−0
@@ -1132,6 +1132,7 @@ HAVE_LIST=" · 1131 unmodified lines
11321132 dev_ic_bt8xx_h
11331133 dev_video_bktr_ioctl_bt848_h
11341134 dev_video_meteor_ioctl_meteor_h
1135+ direct_h
11351136 dlfcn_h
11361137 dlopen
11371138 dos_paths
@@ -3175,6 +3176,7 @@ check_func_headers windows.h MapViewOfFile · 2037 unmodified lines
31753176 check_func_headers windows.h Sleep
31763177 check_func_headers windows.h VirtualAlloc
31773178
3179+check_header direct.h
31783180 check_header dlfcn.h
31793181 check_header dxva.h
31803182 check_header dxva2api.h
libavformat/os_support.h+3−3
@@ -39,10 +39,10 @@ · 38 unmodified lines
3939 #endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */
4040
4141 #ifdef _WIN32
42−#ifdef __MINGW32CE__
43−#include <io.h>
44−#else
42+#if HAVE_DIRECT_H
4543 #include <direct.h>
44+#elif HAVE_IO_H
45+#include <io.h>
4646 #endif
4747 #define mkdir(a, b) _mkdir(a)
4848 #else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t