Commit 8c1a21b4 authored by Mike Gabriel's avatar Mike Gabriel Committed by Mihai Moldovan

drop platform support: unifdef sgi.

Relates to ArcticaProject/nx-libs#275.
parent 5c3776d2
...@@ -504,24 +504,6 @@ ...@@ -504,24 +504,6 @@
# define MacIIArchitecture # define MacIIArchitecture
#endif /* macII */ #endif /* macII */
#ifdef sgi
# define MacroIncludeFile <sgi.cf>
# define MacroFile sgi.cf
# undef sgi
# define SGIArchitecture
# undef mips
# undef __mips
# define MipsArchitecture
# ifdef _SVR4
# undef _SVR4
# define SVR4Architecture
# endif
# ifdef _SYSTYPE_SVR4
# undef _SYSTYPE_SVR4
# define SVR4Architecture
# endif
#endif /* sgi */
#ifdef stellar #ifdef stellar
# define MacroIncludeFile <stellar.cf> # define MacroIncludeFile <stellar.cf>
# define MacroFile stellar.cf # define MacroFile stellar.cf
......
...@@ -109,14 +109,12 @@ from The Open Group. ...@@ -109,14 +109,12 @@ from The Open Group.
* decide that you don't want to use alloca, you might want to fix it here. * decide that you don't want to use alloca, you might want to fix it here.
*/ */
/* alloca might be a macro taking one arg (hi, Sun!), so give it one. */ /* alloca might be a macro taking one arg (hi, Sun!), so give it one. */
# ifndef __sgi /* IRIX 5/6 has definition */
# define __Xnullarg /* as nothing */ # define __Xnullarg /* as nothing */
# ifndef X_NOT_STDC_ENV # ifndef X_NOT_STDC_ENV
extern void *alloca(__Xnullarg); extern void *alloca(__Xnullarg);
# else # else
extern char *alloca(__Xnullarg); extern char *alloca(__Xnullarg);
# endif # endif
# endif /* __sgi */
# define ALLOCATE_LOCAL(size) alloca((int)(size)) # define ALLOCATE_LOCAL(size) alloca((int)(size))
# endif /* who does alloca */ # endif /* who does alloca */
# endif /* NCR */ # endif /* NCR */
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#else #else
#ifdef SVR4 #ifdef SVR4
#if defined(NCR) || defined(Mips) || defined(__sgi) #if defined(NCR) || defined(Mips)
#include <sys/endian.h> #include <sys/endian.h>
#else #else
#if !defined(sun) #if !defined(sun)
......
...@@ -59,8 +59,7 @@ SOFTWARE. ...@@ -59,8 +59,7 @@ SOFTWARE.
defined(__sparc64__) || \ defined(__sparc64__) || \
defined(__s390x__) || \ defined(__s390x__) || \
defined(__amd64__) || defined(amd64) || \ defined(__amd64__) || defined(amd64) || \
defined(__powerpc64__) || \ defined(__powerpc64__)
(defined(sgi) && (_MIPS_SZLONG == 64))
#define LONG64 /* 32/64-bit architecture */ #define LONG64 /* 32/64-bit architecture */
#endif #endif
...@@ -100,7 +99,7 @@ typedef long INT32; ...@@ -100,7 +99,7 @@ typedef long INT32;
#endif #endif
typedef short INT16; typedef short INT16;
#if defined(__STDC__) || defined(sgi) #if defined(__STDC__)
typedef signed char INT8; typedef signed char INT8;
#else #else
typedef char INT8; typedef char INT8;
......
...@@ -57,11 +57,9 @@ in this Software without prior written authorization from The Open Group. ...@@ -57,11 +57,9 @@ in this Software without prior written authorization from The Open Group.
#endif #endif
#endif /* USG */ #endif /* USG */
#ifndef sgi
#if defined(__SCO__) || defined(__UNIXWARE__) #if defined(__SCO__) || defined(__UNIXWARE__)
#include <stdint.h> #include <stdint.h>
#endif #endif
#endif
#ifdef _SEQUENT_ #ifdef _SEQUENT_
/* /*
......
...@@ -56,7 +56,7 @@ typedef struct mutex xmutex_rec; ...@@ -56,7 +56,7 @@ typedef struct mutex xmutex_rec;
#define xcondition_broadcast(cv) condition_broadcast(cv) #define xcondition_broadcast(cv) condition_broadcast(cv)
#define xcondition_set_name(cv,str) condition_set_name(cv,str) #define xcondition_set_name(cv,str) condition_set_name(cv,str)
#else /* !CTHREADS */ #else /* !CTHREADS */
#if defined(SVR4) && !defined(__sgi) && !defined(_SEQUENT_) #if defined(SVR4) && !defined(_SEQUENT_)
#include <thread.h> #include <thread.h>
#include <synch.h> #include <synch.h>
typedef thread_t xthread_t; typedef thread_t xthread_t;
......
...@@ -102,7 +102,7 @@ _XlcMapOSLocaleName( ...@@ -102,7 +102,7 @@ _XlcMapOSLocaleName(
/* FIXME: correct indentation levels after ancient platform clean-up */ /* FIXME: correct indentation levels after ancient platform clean-up */
#if defined(CSRG_BASED) || defined(sun) || defined(SVR4) || defined(sgi) || defined(ultrix) || defined(WIN32) || defined(linux) #if defined(CSRG_BASED) || defined(sun) || defined(SVR4) || defined(ultrix) || defined(WIN32) || defined(linux)
# ifdef ultrix # ifdef ultrix
# define SKIPCOUNT 2 # define SKIPCOUNT 2
# define STARTCHAR '\001' # define STARTCHAR '\001'
......
...@@ -66,7 +66,7 @@ typedef cthread_t xthread_t; ...@@ -66,7 +66,7 @@ typedef cthread_t xthread_t;
#pragma weak condition_signal = _Xthr_zero_stub_ #pragma weak condition_signal = _Xthr_zero_stub_
#pragma weak condition_broadcast = _Xthr_zero_stub_ #pragma weak condition_broadcast = _Xthr_zero_stub_
#else /* !CTHREADS */ #else /* !CTHREADS */
#if defined(SVR4) && !defined(__sgi) #if defined(SVR4)
#include <thread.h> #include <thread.h>
typedef thread_t xthread_t; typedef thread_t xthread_t;
#pragma weak thr_self = _Xthr_self_stub_ #pragma weak thr_self = _Xthr_self_stub_
......
...@@ -373,11 +373,7 @@ XkbGetXlibControls(Display *dpy) ...@@ -373,11 +373,7 @@ XkbGetXlibControls(Display *dpy)
unsigned int unsigned int
XkbXlibControlsImplemented(void) XkbXlibControlsImplemented(void)
{ {
#ifdef __sgi
return XkbLC_AllControls;
#else
return XkbLC_AllControls & ~XkbLC_AllComposeControls; return XkbLC_AllControls & ~XkbLC_AllComposeControls;
#endif
} }
Bool Bool
......
...@@ -50,10 +50,6 @@ from The Open Group. ...@@ -50,10 +50,6 @@ from The Open Group.
#include <ctype.h> #include <ctype.h>
#include <nx-X11/Xos.h> #include <nx-X11/Xos.h>
#ifdef __sgi_not_xconsortium
#define XKB_EXTEND_LOOKUP_STRING
#endif
static int static int
_XkbHandleSpecialSym(KeySym keysym, char *buffer, int nbytes, int *extra_rtrn) _XkbHandleSpecialSym(KeySym keysym, char *buffer, int nbytes, int *extra_rtrn)
{ {
......
...@@ -248,9 +248,6 @@ typedef struct _XSQEvent ...@@ -248,9 +248,6 @@ typedef struct _XSQEvent
#endif #endif
#include <nx-X11/Xproto.h> #include <nx-X11/Xproto.h>
#ifdef __sgi
#define _SGI_MP_SOURCE /* turn this on to get MP safe errno */
#endif
#include <errno.h> #include <errno.h>
#define _XBCOPYFUNC _Xbcopy #define _XBCOPYFUNC _Xbcopy
#include <nx-X11/Xfuncs.h> #include <nx-X11/Xfuncs.h>
......
...@@ -160,7 +160,7 @@ INSTPGMFLAGS = ...@@ -160,7 +160,7 @@ INSTPGMFLAGS =
#if HasPam && HasPamMisc #if HasPam && HasPamMisc
PAMLIBS = PamLibraries PamMiscLibraries PAMLIBS = PamLibraries PamMiscLibraries
#endif #endif
#if !(SystemV4 || defined(SGIArchitecture) || UseRgbTxt) #if !(SystemV4 || UseRgbTxt)
DBMLIBS = DBMLibrary DBMLIBS = DBMLibrary
#endif #endif
SYSLIBS = $(ZLIB) MathLibrary $(DBMLIBS) $(USB) \ SYSLIBS = $(ZLIB) MathLibrary $(DBMLIBS) $(USB) \
......
...@@ -662,13 +662,7 @@ InitPtrFeedbackClassDeviceStruct(DeviceIntPtr dev, PtrCtrlProcPtr controlProc) ...@@ -662,13 +662,7 @@ InitPtrFeedbackClassDeviceStruct(DeviceIntPtr dev, PtrCtrlProcPtr controlProc)
if (!feedc) if (!feedc)
return FALSE; return FALSE;
feedc->CtrlProc = controlProc; feedc->CtrlProc = controlProc;
#ifdef sgi
feedc->ctrl.num = 1;
feedc->ctrl.den = 1;
feedc->ctrl.threshold = 1;
#else
feedc->ctrl = defaultPointerControl; feedc->ctrl = defaultPointerControl;
#endif
feedc->ctrl.id = 0; feedc->ctrl.id = 0;
if ( (feedc->next = dev->ptrfeed) ) if ( (feedc->next = dev->ptrfeed) )
feedc->ctrl.id = dev->ptrfeed->ctrl.id + 1; feedc->ctrl.id = dev->ptrfeed->ctrl.id + 1;
......
...@@ -104,8 +104,7 @@ typedef unsigned __int64 FbBits; ...@@ -104,8 +104,7 @@ typedef unsigned __int64 FbBits;
defined(__sparc64__) || defined(_LP64) || \ defined(__sparc64__) || defined(_LP64) || \
defined(__s390x__) || \ defined(__s390x__) || \
defined(amd64) || defined (__amd64__) || \ defined(amd64) || defined (__amd64__) || \
defined (__powerpc64__) || \ defined (__powerpc64__)
(defined(sgi) && (_MIPS_SZLONG == 64))
typedef unsigned long FbBits; typedef unsigned long FbBits;
# else # else
typedef unsigned long long FbBits; typedef unsigned long long FbBits;
......
...@@ -587,12 +587,6 @@ int ddxProcessArgument(int argc, char *argv[], int i) ...@@ -587,12 +587,6 @@ int ddxProcessArgument(int argc, char *argv[], int i)
if(++i < argc) if(++i < argc)
{ {
#ifdef sgi
userdefinedfontpath = 1;
#endif
#ifdef TEST #ifdef TEST
fprintf(stderr, "ddxProcessArgument: User defined font path [%s].\n", argv[i]); fprintf(stderr, "ddxProcessArgument: User defined font path [%s].\n", argv[i]);
#endif #endif
......
...@@ -192,7 +192,7 @@ SOFTWARE. ...@@ -192,7 +192,7 @@ SOFTWARE.
#endif /* macII */ #endif /* macII */
#if (defined(mips) || defined(__mips)) && !defined(sgi) #if (defined(mips) || defined(__mips))
#if defined(MIPSEL) || defined(__MIPSEL__) #if defined(MIPSEL) || defined(__MIPSEL__)
# define IMAGE_BYTE_ORDER LSBFirst /* Values for the PMAX only */ # define IMAGE_BYTE_ORDER LSBFirst /* Values for the PMAX only */
...@@ -344,14 +344,6 @@ SOFTWARE. ...@@ -344,14 +344,6 @@ SOFTWARE.
#endif /* linux/m68k */ #endif /* linux/m68k */
#ifdef sgi
#define IMAGE_BYTE_ORDER MSBFirst
#define BITMAP_BIT_ORDER MSBFirst
#define GLYPHPADBYTES 4
#endif
/* linux on the Compaq Itsy */ /* linux on the Compaq Itsy */
#if defined(linux) && defined(__arm__) #if defined(linux) && defined(__arm__)
#define IMAGE_BYTE_ORDER LSBFirst #define IMAGE_BYTE_ORDER LSBFirst
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
* forcing as to use div instead of shift. Let's be explicit. * forcing as to use div instead of shift. Let's be explicit.
*/ */
#if defined(mips) || defined(sgi) || \ #if defined(mips) || \
defined(sparc) || defined(__sparc64__) || \ defined(sparc) || defined(__sparc64__) || \
defined(__alpha) || defined(__alpha__) || \ defined(__alpha) || defined(__alpha__) || \
defined(__i386__) || defined(i386) || \ defined(__i386__) || defined(i386) || \
......
...@@ -286,7 +286,7 @@ AccessUsingXdmcp (void) ...@@ -286,7 +286,7 @@ AccessUsingXdmcp (void)
} }
#if ((defined(SVR4) && !defined(SCO325) && !defined(sun) && !defined(NCR)) || defined(ISC)) && !defined(__sgi) && defined(SIOCGIFCONF) && !defined(USE_SIOCGLIFCONF) #if ((defined(SVR4) && !defined(SCO325) && !defined(sun) && !defined(NCR)) || defined(ISC)) && defined(SIOCGIFCONF) && !defined(USE_SIOCGLIFCONF)
/* Deal with different SIOCGIFCONF ioctl semantics on these OSs */ /* Deal with different SIOCGIFCONF ioctl semantics on these OSs */
......
...@@ -61,7 +61,6 @@ SOFTWARE. ...@@ -61,7 +61,6 @@ SOFTWARE.
#include <X11/Xdmcp.h> #include <X11/Xdmcp.h>
#ifndef sgi /* SGI defines OPEN_MAX in a useless way */
#ifndef X_NOT_POSIX #ifndef X_NOT_POSIX
#ifdef _POSIX_SOURCE #ifdef _POSIX_SOURCE
#include <limits.h> #include <limits.h>
...@@ -77,7 +76,6 @@ SOFTWARE. ...@@ -77,7 +76,6 @@ SOFTWARE.
#undef _POSIX_ #undef _POSIX_
#endif #endif
#endif /* X_NOT_POSIX */ #endif /* X_NOT_POSIX */
#endif
#ifndef OPEN_MAX #ifndef OPEN_MAX
#ifdef SVR4 #ifdef SVR4
......
...@@ -269,10 +269,6 @@ long Memory_fail = 0; ...@@ -269,10 +269,6 @@ long Memory_fail = 0;
#include <stdlib.h> /* for random() */ #include <stdlib.h> /* for random() */
#endif #endif
#ifdef sgi
int userdefinedfontpath = 0;
#endif /* sgi */
char *dev_tty_from_init = NULL; /* since we need to parse it anyway */ char *dev_tty_from_init = NULL; /* since we need to parse it anyway */
extern char dispatchExceptionAtReset; extern char dispatchExceptionAtReset;
...@@ -831,9 +827,6 @@ ProcessCommandLine(int argc, char *argv[]) ...@@ -831,9 +827,6 @@ ProcessCommandLine(int argc, char *argv[])
{ {
if(++i < argc) if(++i < argc)
{ {
#ifdef sgi
userdefinedfontpath = 1;
#endif /* sgi */
defaultFontPath = argv[i]; defaultFontPath = argv[i];
} }
else else
......
...@@ -173,8 +173,7 @@ typedef __int64 xFixed_32_32; ...@@ -173,8 +173,7 @@ typedef __int64 xFixed_32_32;
defined(ia64) || defined(__ia64__) || \ defined(ia64) || defined(__ia64__) || \
defined(__sparc64__) || \ defined(__sparc64__) || \
defined(__s390x__) || \ defined(__s390x__) || \
defined(amd64) || defined (__amd64__) || \ defined(amd64) || defined (__amd64__)
(defined(sgi) && (_MIPS_SZLONG == 64))
typedef long xFixed_32_32; typedef long xFixed_32_32;
# else # else
# if defined(__GNUC__) && \ # if defined(__GNUC__) && \
......
#define SGIHyperOpt #define SGIHyperOpt
#include <Server.tmpl> #include <Server.tmpl>
#ifdef SGIArchitecture
EXTRA_ALLOC_DEFINES = -DFORCE_ALLOCA
#endif
#if BuildXInputExt #if BuildXInputExt
XKBXI_SRCS = xkbPrOtherEv.c XKBXI_SRCS = xkbPrOtherEv.c
XKBXI_OBJS = xkbPrOtherEv.o XKBXI_OBJS = xkbPrOtherEv.o
...@@ -48,7 +44,7 @@ XF86INCLUDES = -I$(XF86COMSRC) -I$(XF86OSSRC) ...@@ -48,7 +44,7 @@ XF86INCLUDES = -I$(XF86COMSRC) -I$(XF86OSSRC)
`pkg-config --cflags-only-I pixman-1` `pkg-config --cflags-only-I pixman-1`
LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln LINTLIBS = ../dix/llib-ldix.ln ../os/llib-los.ln
DEFINES = $(EXTRA_ALLOC_DEFINES) $(XKB_DDXDEFS) $(NX_DEFINES) DEFINES = $(XKB_DDXDEFS) $(NX_DEFINES)
XKB_DEFINES = -DXKB_BASE_DIRECTORY=\"$(LIBDIR)/xkb\" $(XKB_DISABLE) XKB_DEFINES = -DXKB_BASE_DIRECTORY=\"$(LIBDIR)/xkb\" $(XKB_DISABLE)
NormalLibraryObjectRule() NormalLibraryObjectRule()
......
...@@ -53,7 +53,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -53,7 +53,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <nx-X11/extensions/XI.h> #include <nx-X11/extensions/XI.h>
#include "xkb.h" #include "xkb.h"
#if defined(CSRG_BASED) || defined(linux) || defined(__sgi) || defined(__GNU__) #if defined(CSRG_BASED) || defined(linux) || defined(__GNU__)
#include <paths.h> #include <paths.h>
#endif #endif
......
...@@ -54,13 +54,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -54,13 +54,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define CREATE_ATOM(s) MakeAtom(s,sizeof(s)-1,1) #define CREATE_ATOM(s) MakeAtom(s,sizeof(s)-1,1)
#ifdef sgi
#define LED_CAPS 5
#define LED_NUM 6
#define LED_SCROLL 7
#define PHYS_LEDS 0x7f
#define LED_COMPOSE 8
#else
#if defined(ultrix) || defined(__alpha) || defined(__alpha__) #if defined(ultrix) || defined(__alpha) || defined(__alpha__)
#define LED_COMPOSE 2 #define LED_COMPOSE 2
#define LED_CAPS 3 #define LED_CAPS 3
...@@ -81,7 +74,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -81,7 +74,6 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#define PHYS_LEDS 0x07 #define PHYS_LEDS 0x07
#endif #endif
#endif #endif
#endif
#define MAX_TOC 16 #define MAX_TOC 16
typedef struct _SrvXkmInfo { typedef struct _SrvXkmInfo {
......
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