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
1132 dev_ic_bt8xx_h1132 dev_ic_bt8xx_h
1133 dev_video_bktr_ioctl_bt848_h1133 dev_video_bktr_ioctl_bt848_h
1134 dev_video_meteor_ioctl_meteor_h1134 dev_video_meteor_ioctl_meteor_h
1135 direct_h
1135 dlfcn_h1136 dlfcn_h
1136 dlopen1137 dlopen
1137 dos_paths1138 dos_paths
@@ -3175,6 +3176,7 @@ check_func_headers windows.h MapViewOfFile · 2037 unmodified lines
3175check_func_headers windows.h Sleep3176check_func_headers windows.h Sleep
3176check_func_headers windows.h VirtualAlloc3177check_func_headers windows.h VirtualAlloc
3177 3178
3179check_header direct.h
3178check_header dlfcn.h3180check_header dlfcn.h
3179check_header dxva.h3181check_header dxva.h
3180check_header dxva2api.h3182check_header dxva2api.h
libavformat/os_support.h+3−3
@@ -39,10 +39,10 @@ · 38 unmodified lines
39#endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */39#endif /* defined(__MINGW32__) && !defined(__MINGW32CE__) */
40 40
41#ifdef _WIN3241#ifdef _WIN32
42#ifdef __MINGW32CE__42#if HAVE_DIRECT_H
43#include <io.h>
44#else
45#include <direct.h>43#include <direct.h>
44#elif HAVE_IO_H
45#include <io.h>
46#endif46#endif
47#define mkdir(a, b) _mkdir(a)47#define mkdir(a, b) _mkdir(a)
48#else48#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