summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-04-12 22:47:07 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-04-12 22:47:07 +0900
commitdf7efdcb6b7fd4286fe7d1fe853fb679aa6a5120 (patch)
tree7cf71b827f1fb62dfeb3c9d996b1c7b4c3d77127 /string.c
parent59171378fb1b22d66daf9a028bc07812cabbdfcc (diff)
Get rid of LONG_LONG redefinition
Diffstat (limited to 'string.c')
-rw-r--r--string.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/string.c b/string.c
index 90f6bca34f..80ea96f574 100644
--- a/string.c
+++ b/string.c
@@ -21,15 +21,6 @@
# include <unistd.h>
#endif
-#if defined HAVE_CRYPT_R
-# if defined HAVE_CRYPT_H
-# include <crypt.h>
-# endif
-#elif !defined HAVE_CRYPT
-# include "missing/crypt.h"
-# define HAVE_CRYPT_R 1
-#endif
-
#include "debug_counter.h"
#include "encindex.h"
#include "gc.h"
@@ -55,6 +46,15 @@
#include "ruby_assert.h"
#include "vm_sync.h"
+#if defined HAVE_CRYPT_R
+# if defined HAVE_CRYPT_H
+# include <crypt.h>
+# endif
+#elif !defined HAVE_CRYPT
+# include "missing/crypt.h"
+# define HAVE_CRYPT_R 1
+#endif
+
#define BEG(no) (regs->beg[(no)])
#define END(no) (regs->end[(no)])