ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/config_macosx.h
Revision: 1.3
Committed: 2008-01-01T09:40:32Z (16 years, 11 months ago) by gbeauche
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Log Message:
Happy New Year!

File Contents

# Content
1 /*
2 * config_macosx.h - MacOS X macros determined at compile-time
3 *
4 * $Id: config_macosx.h,v 1.2 2007/06/15 22:54:24 gbeauche Exp $
5 *
6 * Basilisk II (C) 1997-2008 Christian Bauer
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 /* Supported platforms are: ppc, ppc64, x86, x86_64 */
24 #if ! defined __ppc__ && ! defined __ppc64__ && ! defined __i386__ && ! defined __x86_64__
25 # error "Unsupported architecture. Please fix arch-specific macros"
26 #endif
27
28 /* Size of data types */
29 #define SIZEOF_FLOAT 4
30 #define SIZEOF_DOUBLE 8
31 #if defined __ppc__ || defined __ppc64__
32 # if defined __LONG_DOUBLE_128__
33 # define SIZEOF_LONG_DOUBLE 16
34 # else
35 # define SIZEOF_LONG_DOUBLE 8
36 # endif
37 #else
38 # define SIZEOF_LONG_DOUBLE 16
39 #endif
40 #define SIZEOF_SHORT 2
41 #define SIZEOF_INT 4
42 #if defined __ppc64__ || defined __x86_64__
43 # define SIZEOF_LONG 8
44 #else
45 # define SIZEOF_LONG 4
46 #endif
47 #define SIZEOF_LONG_LONG 8
48 #define SIZEOF_VOID_P SIZEOF_LONG /* ILP32 or LP64 */
49
50 /* Endian-ness of data types */
51 #if ! defined __LITTLE_ENDIAN__
52 # define WORDS_BIGENDIAN 1
53 #endif
54
55 /* Define to the floating point format of the host machine. */
56 #define HOST_FLOAT_FORMAT IEEE_FLOAT_FORMAT
57
58 /* Define to 1 if the host machine stores floating point numbers in memory
59 with the word containing the sign bit at the lowest address, or to 0 if it
60 does it the other way around. This macro should not be defined if the
61 ordering is the same as for multi-word integers. */
62 /* #undef HOST_FLOAT_WORDS_BIG_ENDIAN */
63
64 /* Define if your system supports Mach exceptions. */
65 #define HAVE_MACH_EXCEPTIONS 1
66
67 /* Define to 1 if you have the <mach/mach.h> header file. */
68 #define HAVE_MACH_MACH_H 1
69
70 /* Define to 1 if you have the `mach_task_self' function. */
71 #define HAVE_MACH_TASK_SELF 1
72
73 /* Define if your system has a working vm_allocate()-based memory allocator. */
74 #define HAVE_MACH_VM 1
75
76 /* Define if the __PAGEZERO Mach-O Low Memory Globals hack works. */
77 #define PAGEZERO_HACK 1