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