summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/compiler.h
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <info@metux.net>2024-02-12 10:52:48 +0100
committerMarge Bot <emma+marge@anholt.net>2024-02-19 09:21:36 +0000
commit6dafe3dbe658b1a2ad927eceb274808a1ac9bc05 (patch)
tree5f1f9b27c398f4587505ebd09f2cdc4d83f62d4e /hw/xfree86/common/compiler.h
parentdb3aa4e03b180244e8b4b02272c49f1e0c48b463 (diff)
drop remains of support for old Sun compilers
With transition from autoconf to meson, these aren't actually supported anymore, and re-adding it isn't planned. Thus the now dead code pathes can be completely removed. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1286>
Diffstat (limited to 'hw/xfree86/common/compiler.h')
-rw-r--r--hw/xfree86/common/compiler.h50
1 files changed, 2 insertions, 48 deletions
diff --git a/hw/xfree86/common/compiler.h b/hw/xfree86/common/compiler.h
index eb788d3fd..af2f1490c 100644
--- a/hw/xfree86/common/compiler.h
+++ b/hw/xfree86/common/compiler.h
@@ -51,10 +51,6 @@
#define _COMPILER_H
-#if defined(__SUNPRO_C)
-#define DO_PROTOTYPES
-#endif
-
/* Map Sun compiler platform defines to gcc-style used in the code */
#if defined(__amd64) && !defined(__amd64__)
#define __amd64__
@@ -95,45 +91,6 @@
#define __FUNCTION__ __func__ /* C99 */
#endif
-#if defined(DO_PROTOTYPES)
-#if !defined(__arm__)
-#if !defined(__sparc__) && !defined(__arm32__) && !defined(__nds32__) \
- && !(defined(__alpha__) && defined(__linux__)) \
- && !(defined(__ia64__) && defined(__linux__)) \
- && !(defined(__mips64) && defined(__linux__)) \
-
-extern _X_EXPORT void outb(unsigned short, unsigned char);
-extern _X_EXPORT void outw(unsigned short, unsigned short);
-extern _X_EXPORT void outl(unsigned short, unsigned int);
-extern _X_EXPORT unsigned int inb(unsigned short);
-extern _X_EXPORT unsigned int inw(unsigned short);
-extern _X_EXPORT unsigned int inl(unsigned short);
-
-#else /* __sparc__, __arm32__, __alpha__, __nds32__ */
-extern _X_EXPORT void outb(unsigned long, unsigned char);
-extern _X_EXPORT void outw(unsigned long, unsigned short);
-extern _X_EXPORT void outl(unsigned long, unsigned int);
-extern _X_EXPORT unsigned int inb(unsigned long);
-extern _X_EXPORT unsigned int inw(unsigned long);
-extern _X_EXPORT unsigned int inl(unsigned long);
-
-#ifdef __SUNPRO_C
-extern _X_EXPORT unsigned char xf86ReadMmio8 (void *, unsigned long);
-extern _X_EXPORT unsigned short xf86ReadMmio16Be (void *, unsigned long);
-extern _X_EXPORT unsigned short xf86ReadMmio16Le (void *, unsigned long);
-extern _X_EXPORT unsigned int xf86ReadMmio32Be (void *, unsigned long);
-extern _X_EXPORT unsigned int xf86ReadMmio32Le (void *, unsigned long);
-extern _X_EXPORT void xf86WriteMmio8 (void *, unsigned long, unsigned int);
-extern _X_EXPORT void xf86WriteMmio16Be (void *, unsigned long, unsigned int);
-extern _X_EXPORT void xf86WriteMmio16Le (void *, unsigned long, unsigned int);
-extern _X_EXPORT void xf86WriteMmio32Be (void *, unsigned long, unsigned int);
-extern _X_EXPORT void xf86WriteMmio32Le (void *, unsigned long, unsigned int);
-#endif /* _SUNPRO_C */
-#endif /* __sparc__, __arm32__, __alpha__, __nds32__ */
-#endif /* __arm__ */
-
-#endif /* NO_INLINE || DO_PROTOTYPES */
-
#ifdef __GNUC__
#ifdef __i386__
@@ -265,8 +222,7 @@ inl(unsigned long port)
#endif /* __linux__ */
-#if (defined(__FreeBSD__) || defined(__OpenBSD__)) \
- && !defined(DO_PROTOTYPES)
+#if (defined(__FreeBSD__) || defined(__OpenBSD__))
/* for FreeBSD and OpenBSD on Alpha, we use the libio (resp. libalpha) */
/* inx/outx routines */
@@ -280,7 +236,7 @@ extern _X_EXPORT unsigned char inb(unsigned int port);
extern _X_EXPORT unsigned short inw(unsigned int port);
extern _X_EXPORT unsigned int inl(unsigned int port);
-#endif /* (__FreeBSD__ || __OpenBSD__ ) && !DO_PROTOTYPES */
+#endif /* (__FreeBSD__ || __OpenBSD__ ) */
#if defined(__NetBSD__)
#include <machine/pio.h>
@@ -941,9 +897,7 @@ inl(unsigned PORT_SIZE port)
#define asm __asm
#endif
#endif
-#if !defined(__SUNPRO_C)
#include <sys/inline.h>
-#endif
#endif /* __GNUC__ */
#if !defined(MMIO_IS_BE) && \