A few patches to help Wine to compile on OS/2.

This commit is contained in:
Robert Pouliot 1999-04-16 06:55:26 +00:00 committed by Alexandre Julliard
parent b94e43303a
commit 0a9975242a
5 changed files with 24 additions and 16 deletions

View File

@ -8,6 +8,10 @@
#include <malloc.h>
#include <math.h>
#include <string.h>
#include "config.h"
#if defined(HAVE_FLOAT_H)
#include <float.h>
#endif
#include "winbase.h"
#include "wingdi.h"

View File

@ -6,12 +6,16 @@
*/
#include <string.h>
#include <math.h>
#include "config.h"
#if defined(HAVE_FLOAT_H)
#include <float.h>
#endif
#if !defined(PI)
#define PI M_PI
#endif
#include "psdrv.h"
#include "debug.h"
#include "winspool.h"
#ifndef PI
#define PI M_PI
#endif
/**********************************************************************
* PSDRV_MoveToEx

View File

@ -98,8 +98,6 @@ typedef struct ucontext SIGCONTEXT;
#endif /* svr4 || SCO_DS */
#ifdef __EMX__
typedef unsigned long ULONG;
typedef unsigned short USHORT;
typedef struct _fpreg /* Note 1 */
{
ULONG losig;

13
tools/make_os2.cmd Normal file
View File

@ -0,0 +1,13 @@
@echo off
rem #!/bin/sh
rem GCCLOAD not needed, but recommended...
rem set GCCLOAD=5
set MAKE=make
set CC=gcc
set CFLAGS=-O2 -Zmtd -D__ST_MT_ERRNO__
set YACC=bison -y
set LEX=flex -olex.yy.c
set RANLIB=ar -s
set PROGEXT=.exe
rem export CC CFLAGS YACC LEX RANLIB PROGEXT
sh configure --x-includes=%X11ROOT%/XFree86/include -x-libraries=%X11ROOT%/XFree86/lib

View File

@ -1,11 +0,0 @@
#!/bin/sh
# GCCLOAD not needed, but recommended...
#GCCLOAD=5
CC=gcc
CFLAGS="-O2 -Zmtd -D__ST_MT_ERRNO__"
YACC="bison -y"
LEX="flex -olex.yy.c"
RANLIB="ar -s"
PROGEXT=".exe"
export CC CFLAGS YACC LEX RANLIB PROGEXT
./configure --x-includes=$X11ROOT/XFree86/include -x-libraries=$X11ROOT/XFree86/lib