summaryrefslogtreecommitdiff
path: root/include/splay-tree.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2012-04-10 17:07:28 +0000
committerDJ Delorie <dj@delorie.com>2012-04-10 17:07:28 +0000
commit100e018be9d4113d5652a0584f91d8b5eebe3eb8 (patch)
treefffecd5bde02c203e0bebb76670d273ca2d26503 /include/splay-tree.h
parentdaa08f4642a47d7fcda9b6d593b2a74feb538460 (diff)
downloadbinutils-redhat-100e018be9d4113d5652a0584f91d8b5eebe3eb8.tar.gz
merge from gcc
Diffstat (limited to 'include/splay-tree.h')
-rw-r--r--include/splay-tree.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/include/splay-tree.h b/include/splay-tree.h
index 480b2c43e7..a26135a099 100644
--- a/include/splay-tree.h
+++ b/include/splay-tree.h
@@ -37,18 +37,11 @@ extern "C" {
#include "ansidecl.h"
-#ifndef _WIN64
- typedef unsigned long int libi_uhostptr_t;
- typedef long int libi_shostptr_t;
-#else
-#ifdef __GNUC__
- __extension__
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
#endif
- typedef unsigned long long libi_uhostptr_t;
-#ifdef __GNUC__
- __extension__
-#endif
- typedef long long libi_shostptr_t;
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
#endif
#ifndef GTY
@@ -59,8 +52,8 @@ extern "C" {
these types, if necessary. These types should be sufficiently wide
that any pointer or scalar can be cast to these types, and then
cast back, without loss of precision. */
-typedef libi_uhostptr_t splay_tree_key;
-typedef libi_uhostptr_t splay_tree_value;
+typedef uintptr_t splay_tree_key;
+typedef uintptr_t splay_tree_value;
/* Forward declaration for a node in the tree. */
typedef struct splay_tree_node_s *splay_tree_node;