summaryrefslogtreecommitdiff
path: root/regint.h
diff options
context:
space:
mode:
Diffstat (limited to 'regint.h')
-rw-r--r--regint.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/regint.h b/regint.h
index 79867f7b6de..9fda5509a99 100644
--- a/regint.h
+++ b/regint.h
@@ -95,7 +95,6 @@
#ifndef RUBY_DEFINES_H
#include "ruby/ruby.h"
-#include "ruby_atomic.h"
#undef xmalloc
#undef xrealloc
#undef xcalloc
@@ -239,10 +238,6 @@ extern pthread_mutex_t gOnigMutex;
#define ONIG_STATE_INC(reg) (reg)->state++
#define ONIG_STATE_DEC(reg) (reg)->state--
-#if SIZEOF_ATOMIC_T == SIZEOF_INT
-#define ONIG_STATE_INC_THREAD(reg) (ATOMIC_INC((reg)->state))
-#define ONIG_STATE_DEC_THREAD(reg) (ATOMIC_DEC((reg)->state))
-#else
#define ONIG_STATE_INC_THREAD(reg) do {\
THREAD_ATOMIC_START;\
(reg)->state++;\
@@ -253,7 +248,6 @@ extern pthread_mutex_t gOnigMutex;
(reg)->state--;\
THREAD_ATOMIC_END;\
} while(0)
-#endif
#else
#define ONIG_STATE_INC(reg) /* Nothing */
#define ONIG_STATE_DEC(reg) /* Nothing */