Commit | Line | Data |
---|---|---|
ea838f99 SS |
1 | /* ho-mpw.h Host-specific header file for MPW. |
2 | Copyright (C) 1993 Free Software Foundation, Inc. | |
3 | ||
4 | This file is part of GAS, the GNU Assembler. | |
5 | ||
6 | GAS is free software; you can redistribute it and/or modify | |
7 | it under the terms of the GNU General Public License as published by | |
8 | the Free Software Foundation; either version 2, or (at your option) | |
9 | any later version. | |
10 | ||
11 | GAS is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | GNU General Public License for more details. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with GAS; see the file COPYING. If not, write to | |
18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
19 | ||
20 | #ifndef MPW | |
21 | #define MPW | |
22 | #endif | |
23 | ||
24 | #define bzero(a,b) memset(a,0,b) | |
25 | #define bcopy(a,b,c) memcpy(b,a,c) | |
26 | #define bcmp(a,b,c) memcmp(a,b,c) | |
27 | ||
28 | #if 0 /* this doesn't work, sigh */ | |
29 | #ifndef __STDC__ | |
30 | #define __STDC__ | |
31 | #endif | |
32 | #endif | |
33 | ||
34 | #define M_ANSI 1 | |
35 | ||
36 | #include <stdlib.h> | |
37 | #include <string.h> | |
38 | ||
39 | #ifndef false | |
40 | #define false ffalse | |
41 | #endif | |
42 | #ifndef true | |
43 | #define true ttrue | |
44 | #endif | |
45 | ||
46 | #include <memory.h> | |
47 | ||
48 | char *strdup(); | |
49 | ||
50 | #ifdef MPW_C | |
51 | ||
52 | #undef __PTR_TO_INT | |
53 | #define __PTR_TO_INT(P) ((int)(P)) | |
54 | #undef __INT_TO_PTR | |
55 | #define __INT_TO_PTR(P) ((char *)(P)) | |
56 | ||
57 | #endif | |
58 | ||
59 | #define sys_nerr _sys_nerr | |
60 | #define sys_errlist _sys_errlist | |
61 | ||
62 | #ifdef __STDIO__ | |
63 | FILE *mpw_fopen(); | |
64 | #endif | |
65 | ||
66 | #define fopen mpw_fopen | |
67 | #define fseek mpw_fseek | |
68 | #define abort mpw_abort | |
69 | ||
70 | /* <cr> is an end-of-line marker. */ | |
71 | ||
72 | #define CR_EOL | |
73 | ||
74 | #define ABORT_ON_ERROR | |
75 | ||
0f8cb88d SS |
76 | #define LOSING_COMPILER |
77 | ||
ea838f99 | 78 | /* end of ho-mpw.h */ |