summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2017-02-23 21:39:10 +0900
committerAkira TAGOH <akira@tagoh.org>2017-02-23 21:39:10 +0900
commit9878b306f6c673d3d6cd9db487f67eb426cc03df (patch)
tree5489efe30c7502c0a3f84a319f039f642a7292f7 /src
parent1ab5258f7c2abfafcd63a760ca08bf93591912da (diff)
Fix the build issue with gperf 3.1
To support the one of changes in gperf 3.1: * The 'len' parameter of the hash function and of the lookup function is now of type 'size_t' instead of 'unsigned int'. This makes it safe to call these functions with strings of length > 4 GB, on 64-bit machines.
Diffstat (limited to 'src')
-rw-r--r--src/fcobjs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcobjs.c b/src/fcobjs.c
index 16ff31c4..33bba8d9 100644
--- a/src/fcobjs.c
+++ b/src/fcobjs.c
@@ -25,10 +25,10 @@
#include "fcint.h"
static unsigned int
-FcObjectTypeHash (register const char *str, register unsigned int len);
+FcObjectTypeHash (register const char *str, register FC_GPERF_SIZE_T len);
static const struct FcObjectTypeInfo *
-FcObjectTypeLookup (register const char *str, register unsigned int len);
+FcObjectTypeLookup (register const char *str, register FC_GPERF_SIZE_T len);
#include "fcobjshash.h"