149d3bc91SRichard Lowe /* 249d3bc91SRichard Lowe 3*07dc1947SRichard Lowe Copyright (C) 2000,2004 Silicon Graphics, Inc. All Rights Reserved. 449d3bc91SRichard Lowe 549d3bc91SRichard Lowe This program is free software; you can redistribute it and/or modify it 649d3bc91SRichard Lowe under the terms of version 2.1 of the GNU Lesser General Public License 749d3bc91SRichard Lowe as published by the Free Software Foundation. 849d3bc91SRichard Lowe 949d3bc91SRichard Lowe This program is distributed in the hope that it would be useful, but 1049d3bc91SRichard Lowe WITHOUT ANY WARRANTY; without even the implied warranty of 1149d3bc91SRichard Lowe MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 1249d3bc91SRichard Lowe 1349d3bc91SRichard Lowe Further, this software is distributed without any warranty that it is 1449d3bc91SRichard Lowe free of the rightful claim of any third person regarding infringement 1549d3bc91SRichard Lowe or the like. Any license provided herein, whether implied or 1649d3bc91SRichard Lowe otherwise, applies only to this software file. Patent licenses, if 1749d3bc91SRichard Lowe any, provided herein do not apply to combinations of this program with 1849d3bc91SRichard Lowe other software, or any other product whatsoever. 1949d3bc91SRichard Lowe 2049d3bc91SRichard Lowe You should have received a copy of the GNU Lesser General Public 2149d3bc91SRichard Lowe License along with this program; if not, write the Free Software 22*07dc1947SRichard Lowe Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston MA 02110-1301, 2349d3bc91SRichard Lowe USA. 2449d3bc91SRichard Lowe 25*07dc1947SRichard Lowe Contact information: Silicon Graphics, Inc., 1500 Crittenden Lane, 2649d3bc91SRichard Lowe Mountain View, CA 94043, or: 2749d3bc91SRichard Lowe 2849d3bc91SRichard Lowe http://www.sgi.com 2949d3bc91SRichard Lowe 3049d3bc91SRichard Lowe For further information regarding this notice, see: 3149d3bc91SRichard Lowe 3249d3bc91SRichard Lowe http://oss.sgi.com/projects/GenInfo/NoticeExplan 3349d3bc91SRichard Lowe 3449d3bc91SRichard Lowe */ 3549d3bc91SRichard Lowe 3649d3bc91SRichard Lowe 3749d3bc91SRichard Lowe /* libdwarfdefs.h 3849d3bc91SRichard Lowe */ 3949d3bc91SRichard Lowe 4049d3bc91SRichard Lowe #ifndef LIBDWARFDEFS_H 4149d3bc91SRichard Lowe #define LIBDWARFDEFS_H 4249d3bc91SRichard Lowe 4349d3bc91SRichard Lowe /* We want __uint32_t and __uint64_t and __int32_t __int64_t 4449d3bc91SRichard Lowe properly defined but not duplicated, since duplicate typedefs 4549d3bc91SRichard Lowe are not legal C. 4649d3bc91SRichard Lowe */ 4749d3bc91SRichard Lowe /* 4849d3bc91SRichard Lowe HAVE___UINT32_T 4949d3bc91SRichard Lowe HAVE___UINT64_T will be set by configure if 5049d3bc91SRichard Lowe our 4 types are predefined in compiler 5149d3bc91SRichard Lowe */ 5249d3bc91SRichard Lowe 5349d3bc91SRichard Lowe 54*07dc1947SRichard Lowe #if (!defined(HAVE___UINT32_T)) && defined(HAVE___UINT32_T_IN_SGIDEFS_H) 5549d3bc91SRichard Lowe #include <sgidefs.h> /* sgidefs.h defines them */ 5649d3bc91SRichard Lowe #define HAVE___UINT32_T 1 5749d3bc91SRichard Lowe #endif 5849d3bc91SRichard Lowe 59*07dc1947SRichard Lowe #if (!defined(HAVE___UINT64_T)) && defined(HAVE___UINT64_T_IN_SGIDEFS_H) 60*07dc1947SRichard Lowe #include <sgidefs.h> /* sgidefs.h defines them */ 61*07dc1947SRichard Lowe #define HAVE___UINT64_T 1 62*07dc1947SRichard Lowe #endif 6349d3bc91SRichard Lowe 6449d3bc91SRichard Lowe 6549d3bc91SRichard Lowe #if (!defined(HAVE___UINT32_T)) && \ 6649d3bc91SRichard Lowe defined(HAVE_SYS_TYPES_H) && \ 6749d3bc91SRichard Lowe defined(HAVE___UINT32_T_IN_SYS_TYPES_H) 6849d3bc91SRichard Lowe # include <sys/types.h> 6949d3bc91SRichard Lowe #define HAVE___UINT32_T 1 70*07dc1947SRichard Lowe #endif 71*07dc1947SRichard Lowe 72*07dc1947SRichard Lowe #if (!defined(HAVE___UINT64_T)) && \ 73*07dc1947SRichard Lowe defined(HAVE_SYS_TYPES_H) && \ 74*07dc1947SRichard Lowe defined(HAVE___UINT64_T_IN_SYS_TYPES_H) 75*07dc1947SRichard Lowe # include <sys/types.h> 7649d3bc91SRichard Lowe #define HAVE___UINT64_T 1 7749d3bc91SRichard Lowe #endif 7849d3bc91SRichard Lowe 7949d3bc91SRichard Lowe #ifndef HAVE___UINT32_T 8049d3bc91SRichard Lowe typedef int __int32_t; 8149d3bc91SRichard Lowe typedef unsigned __uint32_t; 8249d3bc91SRichard Lowe #define HAVE___UINT32_T 1 8349d3bc91SRichard Lowe #endif 84*07dc1947SRichard Lowe 8549d3bc91SRichard Lowe #ifndef HAVE___UINT64_T 8649d3bc91SRichard Lowe typedef long long __int64_t; 8749d3bc91SRichard Lowe typedef unsigned long long __uint64_t; 8849d3bc91SRichard Lowe #define HAVE___UINT64_T 1 8949d3bc91SRichard Lowe #endif 9049d3bc91SRichard Lowe 91*07dc1947SRichard Lowe #endif /* LIBDWARFDEFS_H */ 92