ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/sysdeps.h
(Generate patch)

Comparing BasiliskII/src/Unix/sysdeps.h (file contents):
Revision 1.24 by gbeauche, 2002-09-16T14:48:53Z vs.
Revision 1.29 by cebix, 2004-01-12T15:29:25Z

# Line 1 | Line 1
1   /*
2   *  sysdeps.h - System dependent definitions for Unix
3   *
4 < *  Basilisk II (C) 1997-2002 Christian Bauer
4 > *  Basilisk II (C) 1997-2004 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 155 | Line 155 | typedef int64 intptr;
155   #error "Unsupported size of pointer"
156   #endif
157  
158 + #ifndef HAVE_LOFF_T
159 + typedef off_t loff_t;
160 + #endif
161 + #ifndef HAVE_CADDR_T
162 + typedef char * caddr_t;
163 + #endif
164 +
165   /* Time data type for Time Manager emulation */
166   #ifdef HAVE_CLOCK_GETTIME
167   typedef struct timespec tm_time_t;
# Line 182 | Line 189 | typedef struct timeval tm_time_t;
189   typedef uae_u32 uaecptr;
190  
191   /* Alignment restrictions */
192 < #if defined(__i386__) || defined(__powerpc__) || defined(__m68k__)
192 > #if defined(__i386__) || defined(__powerpc__) || defined(__m68k__) || defined(__x86_64__)
193   # define CPU_CAN_ACCESS_UNALIGNED
194   #endif
195  
# Line 235 | Line 242 | static inline void do_put_mem_word(uae_u
242  
243   #else /* WORDS_BIGENDIAN */
244  
245 < #ifdef __i386__
245 > #if defined(__i386__) || defined(__x86_64__)
246  
247   /* Intel x86 */
248   #define X86_PPRO_OPT
# Line 306 | Line 313 | static inline uae_u32 do_byteswap_16(uae
313   #define ENUMNAME(name) name
314   #define write_log printf
315  
316 < #ifdef X86_ASSEMBLY
316 > #if defined(X86_ASSEMBLY) || defined(X86_64_ASSEMBLY)
317   #define ASM_SYM_FOR_FUNC(a) __asm__(a)
318   #else
319   #define ASM_SYM_FOR_FUNC(a)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines