Alexandre Julliard : setupapi: Don't include msvcrt headers.
Alexandre Julliard
julliard at winehq.org
Fri Dec 12 07:04:08 CST 2008
Module: wine
Branch: master
Commit: a537aadd147d11bdfa4a6f557ae32539898eee4a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a537aadd147d11bdfa4a6f557ae32539898eee4a
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Dec 11 22:27:59 2008 +0100
setupapi: Don't include msvcrt headers.
---
dlls/setupapi/setupcab.c | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/dlls/setupapi/setupcab.c b/dlls/setupapi/setupcab.c
index a3427d3..f01c3d5 100644
--- a/dlls/setupapi/setupcab.c
+++ b/dlls/setupapi/setupcab.c
@@ -37,12 +37,31 @@
#include "setupapi_private.h"
#include "fdi.h"
#include "wine/unicode.h"
-
-#include "msvcrt/fcntl.h"
-#include "msvcrt/share.h"
-
#include "wine/debug.h"
+/* from msvcrt */
+#define _O_RDONLY 0
+#define _O_WRONLY 1
+#define _O_RDWR 2
+#define _O_ACCMODE (_O_RDONLY|_O_WRONLY|_O_RDWR)
+#define _O_APPEND 0x0008
+#define _O_RANDOM 0x0010
+#define _O_SEQUENTIAL 0x0020
+#define _O_TEMPORARY 0x0040
+#define _O_NOINHERIT 0x0080
+#define _O_CREAT 0x0100
+#define _O_TRUNC 0x0200
+#define _O_EXCL 0x0400
+#define _O_SHORT_LIVED 0x1000
+#define _O_TEXT 0x4000
+#define _O_BINARY 0x8000
+
+#define _SH_COMPAT 0x00
+#define _SH_DENYRW 0x10
+#define _SH_DENYWR 0x20
+#define _SH_DENYRD 0x30
+#define _SH_DENYNO 0x40
+
OSVERSIONINFOW OsVersionInfo;
static HINSTANCE CABINET_hInstance = 0;
More information about the wine-cvs
mailing list