Commit ace255ed authored by Mike Gabriel's avatar Mike Gabriel

drop platform support: unifdef Lynx.

Fixes ArcticaProject/nx-libs#272.
parent d12f9524
...@@ -1006,34 +1006,6 @@ XCOMM Keep cpp from replacing path elements containing i486/i586/i686 ...@@ -1006,34 +1006,6 @@ XCOMM Keep cpp from replacing path elements containing i486/i586/i686
# endif # endif
#endif /* linux || __GLIBC__ */ #endif /* linux || __GLIBC__ */
#if (defined(__Lynx__) || defined(Lynx)) && (defined(i386) || defined(__i386__) || defined(__x86__) || defined(__powerpc__) || defined(__sparc__) || defined(sparc))
# define MacroIncludeFile <lynx.cf>
# define MacroFile lynx.cf
# define LynxOSArchitecture
# undef __Lynx__
# undef Lynx
# undef lynx
# if defined(i386) || defined(__i386__) || defined(__x86__)
# define i386Architecture
# undef i386
# undef __i386__
# undef __x86__
# endif
# ifdef __powerpc__
# define PpcArchitecture
# undef __powerpc__
# endif
# if defined(sparc) || defined(__sparc__)
# define SparcArchitecture
# undef sparc
# undef __sparc__
# endif
/* for compatibility with 3.3.x */
# ifdef PpcArchitecture
# define PowerPCArchitecture
# endif
#endif /* LynxOS AT/PPC/microSPARC */
#ifdef __uxp__ #ifdef __uxp__
# define MacroIncludeFile <fujitsu.cf> # define MacroIncludeFile <fujitsu.cf>
# define MacroFile fujitsu.cf # define MacroFile fujitsu.cf
......
...@@ -512,7 +512,7 @@ IPLAN2P8_DEFS = -DUSE_IPLAN2P8 ...@@ -512,7 +512,7 @@ IPLAN2P8_DEFS = -DUSE_IPLAN2P8
#ifndef BuildScanpci #ifndef BuildScanpci
# if SystemV || SystemV4 || \ # if SystemV || SystemV4 || \
(defined(LinuxArchitecture) && !defined(Mc68020Architecture)) || \ (defined(LinuxArchitecture) && !defined(Mc68020Architecture)) || \
defined(i386BsdArchitecture) || defined(LynxOSArchitecture) || \ defined(i386BsdArchitecture) || \
defined(GNUMachArchitecture) || \ defined(GNUMachArchitecture) || \
(defined(KFreeBSDArchitecture) && defined(i386Architecture)) (defined(KFreeBSDArchitecture) && defined(i386Architecture))
# define BuildScanpci YES # define BuildScanpci YES
......
...@@ -73,13 +73,6 @@ ...@@ -73,13 +73,6 @@
#if !defined(BYTE_ORDER) && defined(__BYTE_ORDER) #if !defined(BYTE_ORDER) && defined(__BYTE_ORDER)
#define BYTE_ORDER __BYTE_ORDER #define BYTE_ORDER __BYTE_ORDER
#endif #endif
#elif defined(Lynx)
#if 0
/* LynxOS 2.4.0 has wrong defines in bsd/ip.h */
#include <bsd/in.h>
#include <bsd/in_systm.h>
#include <bsd/ip.h>
#endif
#endif #endif
#ifndef BYTE_ORDER #ifndef BYTE_ORDER
...@@ -98,14 +91,7 @@ ...@@ -98,14 +91,7 @@
#endif #endif
#endif #endif
#ifdef Lynx #if (defined(sun) && defined(SVR4))
#if defined(i386) || defined(__i386__) || defined(__x86__)
#define BYTE_ORDER LITTLE_ENDIAN
#else
#define BYTE_ORDER BIG_ENDIAN
#endif
#endif
#if (defined(sun) && defined(SVR4)) && !defined(Lynx)
#include <sys/isa_defs.h> #include <sys/isa_defs.h>
#ifdef _LITTLE_ENDIAN #ifdef _LITTLE_ENDIAN
#define BYTE_ORDER LITTLE_ENDIAN #define BYTE_ORDER LITTLE_ENDIAN
......
...@@ -219,7 +219,7 @@ struct timeval { ...@@ -219,7 +219,7 @@ struct timeval {
(t)->tv_sec = _gtodtmp.time; \ (t)->tv_sec = _gtodtmp.time; \
(t)->tv_usec = _gtodtmp.millitm * 1000; \ (t)->tv_usec = _gtodtmp.millitm * 1000; \
} }
#elif defined(_SEQUENT_) || defined(Lynx) #elif defined(_SEQUENT_)
#include <time.h> #include <time.h>
#elif defined (__QNX__) #elif defined (__QNX__)
typedef unsigned long fd_mask; typedef unsigned long fd_mask;
......
...@@ -197,14 +197,6 @@ extern void XtProcessUnlock( ...@@ -197,14 +197,6 @@ extern void XtProcessUnlock(
# undef _POSIX_THREAD_SAFE_FUNCTIONS # undef _POSIX_THREAD_SAFE_FUNCTIONS
#endif #endif
/*
* LynxOS 3.1 defines _POSIX_THREAD_SAFE_FUNCTIONS but
* getpwuid_r has different semantics than defined by POSIX
*/
#if defined(Lynx) && defined(_POSIX_THREAD_SAFE_FUNCTIONS)
# undef _POSIX_THREAD_SAFE_FUNCTIONS
#endif
/***** <pwd.h> wrappers *****/ /***** <pwd.h> wrappers *****/
...@@ -334,18 +326,11 @@ typedef struct { ...@@ -334,18 +326,11 @@ typedef struct {
struct passwd pws; struct passwd pws;
char pwbuf[X_LINE_MAX]; char pwbuf[X_LINE_MAX];
} _Xgetpwparams; } _Xgetpwparams;
# if defined(_POSIX_REENTRANT_FUNCTIONS) || !defined(SVR4) || defined(Lynx) # if defined(_POSIX_REENTRANT_FUNCTIONS) || !defined(SVR4)
# ifndef Lynx
# define _XGetpwuid(u,p) \ # define _XGetpwuid(u,p) \
((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
# define _XGetpwnam(u,p) \ # define _XGetpwnam(u,p) \
((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws) ((getpwnam_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
# else /* Lynx */
# define _XGetpwuid(u,p) \
((getpwuid_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
# define _XGetpwnam(u,p) \
((getpwnam_r(&(p).pws,(u),(p).pwbuf,sizeof((p).pwbuf)) == -1) ? NULL : &(p).pws)
# endif
# else /* SVR4 */ # else /* SVR4 */
# define _XGetpwuid(u,p) \ # define _XGetpwuid(u,p) \
((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws) ((getpwuid_r((u),&(p).pws,(p).pwbuf,sizeof((p).pwbuf)) == NULL) ? NULL : &(p).pws)
......
...@@ -67,12 +67,8 @@ in this Software without prior written authorization from The Open Group. ...@@ -67,12 +67,8 @@ in this Software without prior written authorization from The Open Group.
#include <unistd.h> #include <unistd.h>
#if !defined(WIN32) #if !defined(WIN32)
#ifndef Lynx
#include <sys/socket.h> #include <sys/socket.h>
#else #else
#include <socket.h>
#endif
#else
#include <nx-X11/Xwindows.h> #include <nx-X11/Xwindows.h>
#endif #endif
......
...@@ -238,10 +238,6 @@ static void _putbits( ...@@ -238,10 +238,6 @@ static void _putbits(
* *
*/ */
#if defined(Lynx) && defined(ROUNDUP)
#undef ROUNDUP
#endif
#define ROUNDUP(nbytes, pad) ((((nbytes) + ((pad)-1)) / (pad)) * ((pad)>>3)) #define ROUNDUP(nbytes, pad) ((((nbytes) + ((pad)-1)) / (pad)) * ((pad)>>3))
#define XYNORMALIZE(bp, img) \ #define XYNORMALIZE(bp, img) \
......
...@@ -39,10 +39,6 @@ in this Software without prior written authorization from The Open Group. ...@@ -39,10 +39,6 @@ in this Software without prior written authorization from The Open Group.
#define RConst const #define RConst const
#endif #endif
#if defined(Lynx) && defined(ROUNDUP)
#undef ROUNDUP
#endif
/* assumes pad is a power of 2 */ /* assumes pad is a power of 2 */
#define ROUNDUP(nbytes, pad) (((nbytes) + ((pad) - 1)) & ~(long)((pad) - 1)) #define ROUNDUP(nbytes, pad) (((nbytes) + ((pad) - 1)) & ~(long)((pad) - 1))
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
#define MB_LEN_MAX 6 #define MB_LEN_MAX 6
#endif #endif
#if !defined(Lynx_22) && !defined(X_LOCALE) #if !defined(X_LOCALE)
#define STDCVT #define STDCVT
#endif #endif
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
#include "XlcGeneric.h" #include "XlcGeneric.h"
#include <stdio.h> #include <stdio.h>
#if !defined(Lynx_22) && !defined(X_LOCALE) #if !defined(X_LOCALE)
#define STDCVT #define STDCVT
#endif #endif
......
...@@ -248,8 +248,7 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \ ...@@ -248,8 +248,7 @@ NXAGENTOBJS = hw/nxagent/miinitext.o \
hw/nxagent/NXmiexpose.o \ hw/nxagent/NXmiexpose.o \
hw/nxagent/NXresource.o \ hw/nxagent/NXresource.o \
hw/nxagent/NXdamage.o hw/nxagent/NXdamage.o
#elif !defined(LynxOSArchitecture) && \ #elif !defined(Win32Architecture) && \
!defined(Win32Architecture) && \
!defined(QNX4Architecture) !defined(QNX4Architecture)
NXAGENTOBJS = hw/nxagent/miinitext.o \ NXAGENTOBJS = hw/nxagent/miinitext.o \
hw/nxagent/NXwindow.o \ hw/nxagent/NXwindow.o \
...@@ -516,7 +515,7 @@ ServerTarget(NXWin,$(NXWINDIRS),$(NXWINOBJS), \ ...@@ -516,7 +515,7 @@ ServerTarget(NXWin,$(NXWINDIRS),$(NXWINOBJS), \
MIEXTDIRS = $(SHADOWDIR) $(LAYERDIR) $(ROOTLESSDIR) $(MIDAMAGEDIR) MIEXTDIRS = $(SHADOWDIR) $(LAYERDIR) $(ROOTLESSDIR) $(MIDAMAGEDIR)
IPLANDIRS = $(IPLAN2P2DIR) $(IPLAN2P4DIR) $(IPLAN2P8DIR) IPLANDIRS = $(IPLAN2P2DIR) $(IPLAN2P4DIR) $(IPLAN2P8DIR)
DDXDIRS = $(DECWSDDXDIR) $(SUNDDXDIR) $(LYNXDDXDIR) \ DDXDIRS = $(DECWSDDXDIR) $(SUNDDXDIR) \
$(HPDDXDIR) $(XFREE86DDXDIR) \ $(HPDDXDIR) $(XFREE86DDXDIR) \
$(NXAGENTDDXDIR) $(NXWINDDXDIR) $(NXAGENTDDXDIR) $(NXWINDDXDIR)
SUBDIRS = $(STDDIRS) \ SUBDIRS = $(STDDIRS) \
......
...@@ -34,13 +34,8 @@ in this Software without prior written authorization from The Open Group. ...@@ -34,13 +34,8 @@ in this Software without prior written authorization from The Open Group.
#endif #endif
#include <sys/types.h> #include <sys/types.h>
#ifndef Lynx
#include <sys/ipc.h> #include <sys/ipc.h>
#include <sys/shm.h> #include <sys/shm.h>
#else
#include <ipc.h>
#include <shm.h>
#endif
#include <unistd.h> #include <unistd.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <nx-X11/X.h> #include <nx-X11/X.h>
......
...@@ -71,7 +71,7 @@ PERFORMANCE OF THIS SOFTWARE. ...@@ -71,7 +71,7 @@ PERFORMANCE OF THIS SOFTWARE.
#include "protocol-versions.h" #include "protocol-versions.h"
#include <stdio.h> #include <stdio.h>
#if !defined(WIN32) && !defined(Lynx) #if !defined(WIN32)
#include <sys/time.h> #include <sys/time.h>
#endif #endif
......
...@@ -22,14 +22,9 @@ ...@@ -22,14 +22,9 @@
#include "xvmcext.h" #include "xvmcext.h"
#ifdef HAS_XVMCSHM #ifdef HAS_XVMCSHM
#ifndef Lynx
#include <sys/ipc.h> #include <sys/ipc.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/shm.h> #include <sys/shm.h>
#else
#include <ipc.h>
#include <shm.h>
#endif /* Lynx */
#endif /* HAS_XVMCSHM */ #endif /* HAS_XVMCSHM */
......
...@@ -128,11 +128,6 @@ SOFTWARE. ...@@ -128,11 +128,6 @@ SOFTWARE.
#define BITMAP_BIT_ORDER MSBFirst #define BITMAP_BIT_ORDER MSBFirst
#define GLYPHPADBYTES 4 #define GLYPHPADBYTES 4
/* XXX Should this be for Lynx only? */
#ifdef Lynx
#define BITMAP_SCANLINE_UNIT 8
#endif
#endif /* PowerPC */ #endif /* PowerPC */
#if defined(__sh__) #if defined(__sh__)
......
...@@ -76,11 +76,7 @@ SOFTWARE. ...@@ -76,11 +76,7 @@ SOFTWARE.
#include <errno.h> #include <errno.h>
#include <sys/types.h> #include <sys/types.h>
#ifndef WIN32 #ifndef WIN32
#ifndef Lynx
#include <sys/socket.h> #include <sys/socket.h>
#else
#include <socket.h>
#endif
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <ctype.h> #include <ctype.h>
...@@ -173,11 +169,7 @@ SOFTWARE. ...@@ -173,11 +169,7 @@ SOFTWARE.
#endif /* WIN32 */ #endif /* WIN32 */
#ifndef PATH_MAX #ifndef PATH_MAX
#ifndef Lynx
#include <sys/param.h> #include <sys/param.h>
#else
#include <param.h>
#endif
#ifndef PATH_MAX #ifndef PATH_MAX
#ifdef MAXPATHLEN #ifdef MAXPATHLEN
#define PATH_MAX MAXPATHLEN #define PATH_MAX MAXPATHLEN
......
...@@ -80,11 +80,7 @@ SOFTWARE. ...@@ -80,11 +80,7 @@ SOFTWARE.
#include <stdlib.h> #include <stdlib.h>
#ifndef WIN32 #ifndef WIN32
#if defined(Lynx)
#include <socket.h>
#else
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef hpux #ifdef hpux
#include <sys/utsname.h> #include <sys/utsname.h>
...@@ -125,11 +121,7 @@ SOFTWARE. ...@@ -125,11 +121,7 @@ SOFTWARE.
# include <arpa/inet.h> # include <arpa/inet.h>
#endif #endif
#ifndef Lynx
#include <sys/uio.h> #include <sys/uio.h>
#else
#include <uio.h>
#endif
#endif /* WIN32 */ #endif /* WIN32 */
#include "misc.h" #include "misc.h"
#include "osdep.h" #include "osdep.h"
......
...@@ -71,11 +71,7 @@ SOFTWARE. ...@@ -71,11 +71,7 @@ SOFTWARE.
#include <nx-X11/Xmd.h> #include <nx-X11/Xmd.h>
#include <errno.h> #include <errno.h>
#if !defined(WIN32) #if !defined(WIN32)
#ifndef Lynx
#include <sys/uio.h> #include <sys/uio.h>
#else
#include <uio.h>
#endif
#endif #endif
#include <nx-X11/X.h> #include <nx-X11/X.h>
#include <nx-X11/Xproto.h> #include <nx-X11/Xproto.h>
......
...@@ -67,11 +67,11 @@ SOFTWARE. ...@@ -67,11 +67,11 @@ SOFTWARE.
#endif #endif
#endif #endif
#if defined(Lynx) || defined(__SCO__) #if defined(__SCO__)
#include <sys/wait.h> #include <sys/wait.h>
#endif #endif
#if !defined(SYSV) && !defined(WIN32) && !defined(Lynx) && !defined(QNX4) #if !defined(SYSV) && !defined(WIN32) && !defined(QNX4)
#include <sys/resource.h> #include <sys/resource.h>
#endif #endif
......
...@@ -113,7 +113,7 @@ OR PERFORMANCE OF THIS SOFTWARE. ...@@ -113,7 +113,7 @@ OR PERFORMANCE OF THIS SOFTWARE.
#ifndef WIN32 #ifndef WIN32
#include <sys/wait.h> #include <sys/wait.h>
#endif #endif
#if !defined(SYSV) && !defined(WIN32) && !defined(Lynx) && !defined(QNX4) #if !defined(SYSV) && !defined(WIN32) && !defined(QNX4)
#include <sys/resource.h> #include <sys/resource.h>
#endif #endif
#include <time.h> #include <time.h>
...@@ -329,11 +329,7 @@ OsSignal(sig, handler) ...@@ -329,11 +329,7 @@ OsSignal(sig, handler)
#endif #endif
#ifndef PATH_MAX #ifndef PATH_MAX
#ifndef Lynx
#include <sys/param.h> #include <sys/param.h>
#else
#include <param.h>
#endif
#ifndef PATH_MAX #ifndef PATH_MAX
#ifdef MAXPATHLEN #ifdef MAXPATHLEN
#define PATH_MAX MAXPATHLEN #define PATH_MAX MAXPATHLEN
......
...@@ -28,12 +28,8 @@ ...@@ -28,12 +28,8 @@
#include <nx-X11/Xos.h> #include <nx-X11/Xos.h>
#if !defined(WIN32) #if !defined(WIN32)
#ifndef Lynx
#include <sys/param.h> #include <sys/param.h>
#include <sys/socket.h> #include <sys/socket.h>
#else
#include <socket.h>
#endif
#include <netinet/in.h> #include <netinet/in.h>
#include <netdb.h> #include <netdb.h>
#endif #endif
......
...@@ -38,7 +38,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -38,7 +38,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <nx-X11/keysym.h> #include <nx-X11/keysym.h>
#include "inputstr.h" #include "inputstr.h"
#include <xkbsrv.h> #include <xkbsrv.h>
#if !defined(WIN32) && !defined(Lynx) #if !defined(WIN32)
#include <sys/time.h> #include <sys/time.h>
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment