Commit d52f3ac5 authored by Alan Coopersmith's avatar Alan Coopersmith
Browse files

Additional fixes to allow building with Sun compilers on Solaris x86

parent 07109fd6
/* $XdotOrg: xc/programs/Xserver/hw/xfree86/common/compiler.h,v 3.105 2003/12/18 21:56:37 dawes Exp $ */
/* $XdotOrg: xc/programs/Xserver/hw/xfree86/common/compiler.h,v 1.1.4.3 2003/12/20 00:28:26 kaleb Exp $ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/compiler.h,v 3.105 2003/12/18 21:56:37 dawes Exp $ */
/*
* Copyright 1990,91 by Thomas Roell, Dinkelscherben, Germany.
......@@ -113,6 +113,10 @@ extern int ffs(unsigned long);
;
# endif
# if defined(__SUNPRO_C)
# define DO_PROTOTYPES
# endif
# if defined(NO_INLINE) || defined(DO_PROTOTYPES)
# if !defined(__sparc__) && !defined(__arm32__) \
......@@ -1537,7 +1541,7 @@ extern void outl(unsigned int a, unsigned int l);
#if 0
# include <sys/types.h>
#endif
# ifndef __HIGHC__
# if !defined(__HIGHC__) && !defined(__SUNPRO_C)
# ifndef __USLC__
# define __USLC__
# endif
......@@ -1563,7 +1567,8 @@ extern void outl(unsigned int a, unsigned int l);
# else
# include "scoasm.h"
# endif
# if !defined(__HIGHC__) && !defined(SCO325) && !defined(sgi)
# if !defined(__HIGHC__) && !defined(SCO325) && !defined(sgi) && \
!defined(__SUNPRO_C)
# pragma asm partial_optimization outl
# pragma asm partial_optimization outw
# pragma asm partial_optimization outb
......
/* $XdotOrg$ */
/* $XFree86: xc/programs/Xserver/hw/xfree86/vbe/vbe.h,v 1.3 2003/11/14 14:58:45 tsi Exp $ */
/*
......@@ -60,7 +61,7 @@ typedef struct vbeControllerInfoBlock {
CARD8 OemData[256];
} vbeControllerInfoRec, *vbeControllerInfoPtr;
#ifdef __GNUC__
#if defined(__GNUC__) || defined(__SUNPRO_C)
#pragma pack() /* All GCC versions recognise this syntax */
#else
#pragma pack(0)
......
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