summaryrefslogtreecommitdiff
path: root/lib/gl_linkedhash_list.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-04-27 16:23:15 +0200
committerBruno Haible <bruno@clisp.org>2019-04-27 16:23:15 +0200
commit7ffb59a71322feee0c29c6ba46e100cc2c90cb08 (patch)
tree0fa4c951709696b2dab6d3040eb60b604679fe7b /lib/gl_linkedhash_list.c
parent7f9640b56826df74f4a12ecb8184c780a7bb54a6 (diff)
downloadgnulib-7ffb59a71322feee0c29c6ba46e100cc2c90cb08.tar.gz
Fix gcc warnings on 64-bit mode mingw.
* lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t. * lib/gl_array_list.c: Likewise. * lib/gl_array_map.c: Likewise. * lib/gl_array_set.c: Likewise. * lib/gl_carray_list.c: Likewise. * lib/gl_sublist.c: Likewise. * lib/gl_avltreehash_list.c (uintptr_t): Remove definition. * lib/gl_rbtreehash_list.c (uintptr_t): Likewise. * lib/gl_hash_map.c (uintptr_t): Likewise. * lib/gl_hash_set.c (uintptr_t): Likewise. * lib/gl_linkedhash_list.c (uintptr_t): Likewise. * lib/gl_linkedhash_map.c (uintptr_t): Likewise. * lib/gl_linkedhash_set.c (uintptr_t): Likewise. * lib/iconv.c (uintptr_t): Likewise. * lib/iconv_close.c (uintptr_t): Likewise. * tests/test-lock.c: Include <stdint.h>. (once_contender_thread, test_once): Cast through 'intptr_t' instead of 'long'. * modules/clean-temp (Depends-on): Add stdint. * modules/array-list (Depends-on): Likewise. * modules/array-map (Depends-on): Likewise. * modules/array-set (Depends-on): Likewise. * modules/carray-list (Depends-on): Likewise. * modules/sublist (Depends-on): Likewise. * modules/lock-tests (Depends-on): Likewise.
Diffstat (limited to 'lib/gl_linkedhash_list.c')
-rw-r--r--lib/gl_linkedhash_list.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gl_linkedhash_list.c b/lib/gl_linkedhash_list.c
index efe4996b2b..d148d5b5a4 100644
--- a/lib/gl_linkedhash_list.c
+++ b/lib/gl_linkedhash_list.c
@@ -20,15 +20,11 @@
/* Specification. */
#include "gl_linkedhash_list.h"
-#include <stdint.h> /* for SIZE_MAX */
+#include <stdint.h> /* for uintptr_t, SIZE_MAX */
#include <stdlib.h>
#include "xsize.h"
-#ifndef uintptr_t
-# define uintptr_t unsigned long
-#endif
-
#define WITH_HASHTABLE 1
/* -------------------------- gl_list_t Data Type -------------------------- */