X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Futf.h;h=e2d6c59082a4b5be329ea5ff6a2918a8c3dcb40a;hb=5422a862de2354b3419ef628bac5a18c6ef522da;hp=d0ae6e931deb7d058260a5aff9786751f8bd8a18;hpb=286823227c8c06e729dd939ec53b124c5c9afbc4;p=jansson.git diff --git a/src/utf.h b/src/utf.h index d0ae6e9..e2d6c59 100644 --- a/src/utf.h +++ b/src/utf.h @@ -8,13 +8,19 @@ #ifndef UTF_H #define UTF_H +#ifdef HAVE_CONFIG_H #include +#endif #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 +#else +#ifdef _WIN32 +typedef int int32_t; +#endif #endif int utf8_encode(int codepoint, char *buffer, int *size);