summaryrefslogtreecommitdiff
path: root/ext/bigdecimal/missing.c
blob: b0bc6eea4ebd6d31321f0f1aeaf2d39adf4cd43b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <ruby/ruby.h>

#ifdef HAVE_RUBY_ATOMIC_H
# include <ruby/atomic.h>
#endif

#ifdef RUBY_ATOMIC_PTR_CAS
# define ATOMIC_PTR_CAS(var, old, new) RUBY_ATOMIC_PTR_CAS(var, old, new)
#endif

#undef strtod
#define strtod BigDecimal_strtod
#undef dtoa
#define dtoa BigDecimal_dtoa
#undef hdtoa
#define hdtoa BigDecimal_hdtoa
#include "missing/dtoa.c"