OS/2 build fix for GNU C 3.5, patch from Max Vasilyev 2:5057/77
This commit is contained in:
parent
28b6562a17
commit
3f8f3ac232
@ -14,7 +14,7 @@ INCS=-I$(TOP)/goldlib/gall
|
|||||||
ifdef MINGW
|
ifdef MINGW
|
||||||
INCS+=-I$(TOP)/goldlib/glibc
|
INCS+=-I$(TOP)/goldlib/glibc
|
||||||
else
|
else
|
||||||
ifeq ($(findstring EMX, $(PATH)), EMX)
|
ifeq ($(PLATFORM),emx)
|
||||||
INCS+=-I$(TOP)/goldlib/glibc
|
INCS+=-I$(TOP)/goldlib/glibc
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -40,9 +40,13 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#if defined(__EMX__)
|
#if defined(__EMX__)
|
||||||
#include <sys/nls.h>
|
//old EMX 0.9d code
|
||||||
#define g_tolower(c) _nls_tolower((uint8_t)(c))
|
//#include <sys/nls.h>
|
||||||
#define g_toupper(c) _nls_toupper((uint8_t)(c))
|
//#define g_tolower(c) _nls_tolower((uint8_t)(c))
|
||||||
|
//#define g_toupper(c) _nls_toupper((uint8_t)(c))
|
||||||
|
//old EMX 0.9d code
|
||||||
|
#define g_tolower(c) tolower(c)
|
||||||
|
#define g_toupper(c) toupper(c)
|
||||||
#elif defined(__WIN32__)
|
#elif defined(__WIN32__)
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -269,7 +269,7 @@ int unlock(int handle, long offset, long length);
|
|||||||
int lock(int handle, long offset, long length);
|
int lock(int handle, long offset, long length);
|
||||||
int unlock(int handle, long offset, long length);
|
int unlock(int handle, long offset, long length);
|
||||||
#if !defined(__QNXNTO__) && !defined(__MINGW32__)
|
#if !defined(__QNXNTO__) && !defined(__MINGW32__)
|
||||||
inline long tell(int fh) { return lseek(fh, 0, SEEK_CUR); }
|
inline off_t tell(int fh) { return lseek(fh, 0, SEEK_CUR); }
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -42,9 +42,11 @@
|
|||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__EMX__)
|
#if defined(__EMX__)
|
||||||
#include <sys/nls.h>
|
//old EMX 0.9d code
|
||||||
#define strupr(s) (char *)_nls_strupr((uint8_t *)(s))
|
//#include <sys/nls.h>
|
||||||
#define strlwr(s) (char *)_nls_strlwr((uint8_t *)(s))
|
//#define strupr(s) (char *)_nls_strupr((uint8_t *)(s))
|
||||||
|
//#define strlwr(s) (char *)_nls_strlwr((uint8_t *)(s))
|
||||||
|
//old EMX 0.9d code
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
#if defined(__QNXNTO__) || defined(__SUNOS__)
|
#if defined(__QNXNTO__) || defined(__SUNOS__)
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
@ -206,7 +206,7 @@ inline time32_t gmktime(struct tm *timep)
|
|||||||
|
|
||||||
|
|
||||||
#if defined(__OS2__)
|
#if defined(__OS2__)
|
||||||
inline void usleep(long duration) { DosSleep(duration); }
|
inline void usleep(int duration) { DosSleep(duration); }
|
||||||
#elif (defined(__MINGW32__) && __GNUC__*100+__GNUC_MINOR__ < 304) || defined(_MSC_VER)
|
#elif (defined(__MINGW32__) && __GNUC__*100+__GNUC_MINOR__ < 304) || defined(_MSC_VER)
|
||||||
inline void usleep(long duration) { Sleep(duration); }
|
inline void usleep(long duration) { Sleep(duration); }
|
||||||
#endif
|
#endif
|
||||||
|
@ -14,7 +14,7 @@ INCS=-I$(TOP)/goldlib/gall -I$(TOP)/goldlib/gcfg
|
|||||||
ifdef MINGW
|
ifdef MINGW
|
||||||
INCS+=-I$(TOP)/goldlib/glibc
|
INCS+=-I$(TOP)/goldlib/glibc
|
||||||
else
|
else
|
||||||
ifeq ($(findstring EMX, $(PATH)), EMX)
|
ifeq ($(PLATFORM),emx)
|
||||||
INCS+=-I$(TOP)/goldlib/glibc
|
INCS+=-I$(TOP)/goldlib/glibc
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -14,7 +14,7 @@ INCS=-I$(TOP)/goldlib/gall -I$(TOP)/goldlib/gcfg -I$(TOP)/goldlib/gmb3 -I$(TOP)/
|
|||||||
ifdef MINGW
|
ifdef MINGW
|
||||||
INCS+=-I$(TOP)/goldlib/glibc
|
INCS+=-I$(TOP)/goldlib/glibc
|
||||||
else
|
else
|
||||||
ifeq ($(findstring EMX, $(PATH)), EMX)
|
ifeq ($(PLATFORM),emx)
|
||||||
INCS+=-I$(TOP)/goldlib/glibc
|
INCS+=-I$(TOP)/goldlib/glibc
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -12,13 +12,9 @@ TOP=..
|
|||||||
SHORTTARGET=rddt
|
SHORTTARGET=rddt
|
||||||
TARGET=rddt
|
TARGET=rddt
|
||||||
INCS=-I$(TOP)/goldlib/gall -I$(TOP)/golded3
|
INCS=-I$(TOP)/goldlib/gall -I$(TOP)/golded3
|
||||||
ifeq ($(findstring EMX, $(PATH)), EMX)
|
|
||||||
STDLIBS=-lstdcpp
|
|
||||||
else
|
|
||||||
ifdef MINGW
|
ifdef MINGW
|
||||||
STDLIBS=-luser32
|
STDLIBS=-luser32
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
GLIBS=gall
|
GLIBS=gall
|
||||||
CLEANS=
|
CLEANS=
|
||||||
ADDS+=$(TOP)/$(OBJPATH)/$(PLATFORM)/golded3/golded3$(OBJEXT)
|
ADDS+=$(TOP)/$(OBJPATH)/$(PLATFORM)/golded3/golded3$(OBJEXT)
|
||||||
|
Reference in New Issue
Block a user