cabinet: Build with msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2019-11-25 13:30:33 +01:00
parent 03e9bf95be
commit df2521bff2
5 changed files with 7 additions and 29 deletions

View File

@ -1,6 +1,8 @@
MODULE = cabinet.dll MODULE = cabinet.dll
IMPORTLIB = cabinet IMPORTLIB = cabinet
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \ C_SRCS = \
cabinet_main.c \ cabinet_main.c \
deflate.c \ deflate.c \

View File

@ -29,27 +29,6 @@
#include "fdi.h" #include "fdi.h"
#include "fci.h" #include "fci.h"
/* from msvcrt/sys/stat.h */
#define _S_IWRITE 0x0080
#define _S_IREAD 0x0100
/* from msvcrt/fcntl.h */
#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 CAB_SPLITMAX (10) #define CAB_SPLITMAX (10)
#define CAB_SEARCH_SIZE (32*1024) #define CAB_SEARCH_SIZE (32*1024)

View File

@ -18,11 +18,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
#include "config.h"
#include <assert.h> #include <assert.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <fcntl.h>
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"

View File

@ -30,14 +30,12 @@ There is still some work to be done:
*/ */
#include "config.h"
#include <assert.h> #include <assert.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"

View File

@ -58,10 +58,10 @@
* -gmt * -gmt
*/ */
#include "config.h"
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"