xref: /titanic_44/usr/src/tools/ctf/dwarf/common/libdwarfdefs.h (revision 07dc1947c362e187fb955d283b692f8769dd5def)
1 /*
2 
3   Copyright (C) 2000,2004 Silicon Graphics, Inc.  All Rights Reserved.
4 
5   This program is free software; you can redistribute it and/or modify it
6   under the terms of version 2.1 of the GNU Lesser General Public License
7   as published by the Free Software Foundation.
8 
9   This program is distributed in the hope that it would be useful, but
10   WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 
13   Further, this software is distributed without any warranty that it is
14   free of the rightful claim of any third person regarding infringement
15   or the like.  Any license provided herein, whether implied or
16   otherwise, applies only to this software file.  Patent licenses, if
17   any, provided herein do not apply to combinations of this program with
18   other software, or any other product whatsoever.
19 
20   You should have received a copy of the GNU Lesser General Public
21   License along with this program; if not, write the Free Software
22   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301,
23   USA.
24 
25   Contact information:  Silicon Graphics, Inc., 1500 Crittenden Lane,
26   Mountain View, CA 94043, or:
27 
28   http://www.sgi.com
29 
30   For further information regarding this notice, see:
31 
32   http://oss.sgi.com/projects/GenInfo/NoticeExplan
33 
34 */
35 
36 
37 /* libdwarfdefs.h
38 */
39 
40 #ifndef LIBDWARFDEFS_H
41 #define LIBDWARFDEFS_H
42 
43 /* We want __uint32_t and __uint64_t and __int32_t __int64_t
44    properly defined but not duplicated, since duplicate typedefs
45    are not legal C.
46 */
47 /*
48  HAVE___UINT32_T
49  HAVE___UINT64_T will be set by configure if
50  our 4 types are predefined in compiler
51 */
52 
53 
54 #if (!defined(HAVE___UINT32_T)) && defined(HAVE___UINT32_T_IN_SGIDEFS_H)
55 #include <sgidefs.h>		/* sgidefs.h defines them */
56 #define HAVE___UINT32_T 1
57 #endif
58 
59 #if (!defined(HAVE___UINT64_T)) && defined(HAVE___UINT64_T_IN_SGIDEFS_H)
60 #include <sgidefs.h>		/* sgidefs.h defines them */
61 #define HAVE___UINT64_T 1
62 #endif
63 
64 
65 #if (!defined(HAVE___UINT32_T)) &&   \
66 	defined(HAVE_SYS_TYPES_H) &&   \
67 	defined(HAVE___UINT32_T_IN_SYS_TYPES_H)
68 #  include <sys/types.h>
69 #define HAVE___UINT32_T 1
70 #endif
71 
72 #if (!defined(HAVE___UINT64_T)) &&   \
73 	defined(HAVE_SYS_TYPES_H) &&   \
74 	defined(HAVE___UINT64_T_IN_SYS_TYPES_H)
75 #  include <sys/types.h>
76 #define HAVE___UINT64_T 1
77 #endif
78 
79 #ifndef HAVE___UINT32_T
80 typedef int __int32_t;
81 typedef unsigned __uint32_t;
82 #define HAVE___UINT32_T 1
83 #endif
84 
85 #ifndef HAVE___UINT64_T
86 typedef long long __int64_t;
87 typedef unsigned long long __uint64_t;
88 #define HAVE___UINT64_T 1
89 #endif
90 
91 #endif /* LIBDWARFDEFS_H */
92