X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Futf.h;h=d0ae6e931deb7d058260a5aff9786751f8bd8a18;hb=145032a57f7844c29f2c40415b46338ac3445207;hp=03fba697d234834287c69d14b7f1a5507dfafc7c;hpb=e7a5dc58e630aa079f402b46a65d218e656dd489;p=jansson.git diff --git a/src/utf.h b/src/utf.h index 03fba69..d0ae6e9 100644 --- a/src/utf.h +++ b/src/utf.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Petri Lehtinen + * Copyright (c) 2009, 2010 Petri Lehtinen * * Jansson is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. @@ -8,6 +8,15 @@ #ifndef UTF_H #define UTF_H +#include + +#ifdef HAVE_INTTYPES_H +/* inttypes.h includes stdint.h in a standard environment, so there's +no need to include stdint.h separately. If inttypes.h doesn't define +int32_t, it's defined in config.h. */ +#include +#endif + int utf8_encode(int codepoint, char *buffer, int *size); int utf8_check_first(char byte);