summaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bignum.c b/bignum.c
index 8fb3d3940..f4f387cd2 100644
--- a/bignum.c
+++ b/bignum.c
@@ -15,6 +15,11 @@
#include <ctype.h>
VALUE rb_cBignum;
+
+#if defined __MINGW32__
+#define USHORT _USHORT
+#endif
+
typedef unsigned short USHORT;
#define BDIGITS(x) ((USHORT*)RBIGNUM(x)->digits)