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

Comparing SheepShaver/src/BeOS/sysdeps.h (file contents):
Revision 1.1.1.1 by cebix, 2002-02-04T16:58:13Z vs.
Revision 1.7 by gbeauche, 2005-02-27T21:52:06Z

# Line 1 | Line 1
1   /*
2   *  sysdeps.h - System dependent definitions for BeOS
3   *
4 < *  SheepShaver (C) 1997-2002 Christian Bauer and Marc Hellwig
4 > *  SheepShaver (C) 1997-2005 Christian Bauer and Marc Hellwig
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 21 | Line 21
21   #ifndef SYSDEPS_H
22   #define SYSDEPS_H
23  
24 + // Do we have std namespace?
25 + #ifdef __POWERPC__
26 + #define NO_STD_NAMESPACE
27 + #endif
28 +
29   #include <assert.h>
30   #include <sys/types.h>
31   #include <KernelKit.h>
# Line 30 | Line 35
35   // Are we using a PPC emulator or the real thing?
36   #ifdef __POWERPC__
37   #define EMULATED_PPC 0
38 + #define WORDS_BIGENDIAN 1
39 + #define SYSTEM_CLOBBERS_R2 1
40   #else
41   #define EMULATED_PPC 1
42 + #undef  WORDS_BIGENDIAN
43   #endif
44  
45   #define POWERPC_ROM 1
# Line 42 | Line 50 | typedef bigtime_t tm_time_t;
50   // 64 bit file offsets
51   typedef off_t loff_t;
52  
53 + // Data types
54 + typedef uint32 uintptr;
55 + typedef int32 intptr;
56 +
57 + // Timing functions
58 + extern void Delay_usec(uint32 usec);
59 +
60   // Macro for calling MacOS routines
61   #define CallMacOS(type, proc) (*(type)proc)()
62   #define CallMacOS1(type, proc, arg1) (*(type)proc)(arg1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines