diff options
author | Bruno Haible <bruno@clisp.org> | 2019-04-27 16:23:15 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-04-27 16:23:15 +0200 |
commit | 7ffb59a71322feee0c29c6ba46e100cc2c90cb08 (patch) | |
tree | 0fa4c951709696b2dab6d3040eb60b604679fe7b /lib/clean-temp.c | |
parent | 7f9640b56826df74f4a12ecb8184c780a7bb54a6 (diff) | |
download | gnulib-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/clean-temp.c')
-rw-r--r-- | lib/clean-temp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/clean-temp.c b/lib/clean-temp.c index d333f56c09..c3cc7da4d4 100644 --- a/lib/clean-temp.c +++ b/lib/clean-temp.c @@ -26,6 +26,7 @@ #include <fcntl.h> #include <limits.h> #include <stdbool.h> +#include <stdint.h> #include <stdlib.h> #include <string.h> #include <unistd.h> @@ -65,10 +66,6 @@ # define PATH_MAX 1024 #endif -#ifndef uintptr_t -# define uintptr_t unsigned long -#endif - /* The use of 'volatile' in the types below (and ISO C 99 section 5.1.2.3.(5)) ensure that while constructing or modifying the data structures, the field |