Support for the alpha
[external/binutils.git] / bfd / hosts / alphaosf.h
1 #include <fcntl.h>
2 #include <errno.h>
3 #include <stdio.h>
4 #include <sys/types.h>
5 #include <sys/stat.h>
6 #include <ctype.h>
7 #include <string.h>
8 #include <sys/file.h>
9 #include <alloca.h>
10
11 /* Make the basic types 64-bit quantities on the host */
12 #define HOST_64_BIT     long 
13 #ifndef DONTDECLARE_MALLOC
14 extern PTR  EXFUN(malloc,(unsigned));
15 extern PTR  EXFUN(realloc, (PTR, unsigned));
16 #endif
17
18
19
20 /* EXACT TYPES */
21 typedef char int8e_type;
22 typedef unsigned char uint8e_type;
23 typedef short int16e_type;
24 typedef unsigned short uint16e_type;
25 typedef int int32e_type;
26 typedef unsigned int uint32e_type;
27
28
29
30 typedef unsigned  long uint64e_type;
31
32
33 /* CORRECT SIZE OR GREATER */
34 typedef char int8_type;
35 typedef unsigned char uint8_type;
36 typedef short int16_type;
37 typedef unsigned short uint16_type;
38 typedef int int32_type;
39 typedef unsigned int uint32_type;
40
41
42 typedef unsigned  long uint64_type;
43 typedef  long int64_type;
44
45
46 #define BYTES_IN_PRINTF_INT 4
47
48 #define uint64_typeLOW(x) (uint32_type)(((x) & 0xffffffff))
49 #define uint64_typeHIGH(x) (uint32_type)(((x) >> 32) & 0xffffffff)
50 #include "fopen-same.h"