1 /* 2 3 Copyright (C) 2000 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., 59 Temple Place - Suite 330, Boston MA 02111-1307, 23 USA. 24 25 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 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_SGIDEFS_H) 55 #include <sgidefs.h> /* sgidefs.h defines them */ 56 #define HAVE___UINT32_T 1 57 #define HAVE___UINT64_T 1 58 #endif 59 60 61 62 #if (!defined(HAVE___UINT32_T)) && \ 63 defined(HAVE_SYS_TYPES_H) && \ 64 defined(HAVE___UINT32_T_IN_SYS_TYPES_H) 65 # include <sys/types.h> 66 /* we assume __[u]int32_t and __[u]int64_t defined 67 since __uint32_t defined in the sys/types.h in use */ 68 #define HAVE___UINT32_T 1 69 #define HAVE___UINT64_T 1 70 #endif 71 72 #ifndef HAVE___UINT32_T 73 typedef int __int32_t; 74 typedef unsigned __uint32_t; 75 76 #define HAVE___UINT32_T 1 77 #endif 78 #ifndef HAVE___UINT64_T 79 typedef long long __int64_t; 80 typedef unsigned long long __uint64_t; 81 82 #define HAVE___UINT64_T 1 83 #endif 84 85 #endif 86