summaryrefslogtreecommitdiff
path: root/internal/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal/util.h')
-rw-r--r--internal/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/util.h b/internal/util.h
index c1ba2a4..528bee0 100644
--- a/internal/util.h
+++ b/internal/util.h
@@ -10,6 +10,12 @@
* file COPYING are met. Consult the file for details.
* @warning DO NOT ADD RANDOM GARBAGE HERE THIS FILE IS FOR util.c
*/
+#include "ruby/config.h"
+#include <stddef.h> /* for size_t */
+
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h> /* for ssize_t (note: on Windows ssize_t is */
+#endif /* `#define`d in ruby/config.h) */
/* util.c */
char *ruby_dtoa(double d_, int mode, int ndigits, int *decpt, int *sign, char **rve);