aboutsummaryrefslogtreecommitdiff
path: root/src/utf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utf.h')
-rw-r--r--src/utf.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/src/utf.h b/src/utf.h
index 0ab78c1..2cebea0 100644
--- a/src/utf.h
+++ b/src/utf.h
@@ -9,25 +9,12 @@
#define UTF_H
#ifdef HAVE_CONFIG_H
-
#include <jansson_private_config.h>
+#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 <inttypes.h>
-#endif /* HAVE_INTTYPES_H */
-
-#else /* !HAVE_CONFIG_H */
-#ifdef _WIN32
-typedef int int32_t;
-#else /* !_WIN32 */
-/* Assume a standard environment */
-#include <inttypes.h>
-#endif /* _WIN32 */
-
-#endif /* HAVE_CONFIG_H */
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
int utf8_encode(int32_t codepoint, char *buffer, size_t *size);