Make dtoa.c buildable alone
This commit is contained in:
parent
cfc564ac40
commit
bc8cc68aef
Notes:
git
2023-07-14 09:35:41 +00:00
@ -183,7 +183,10 @@
|
|||||||
#undef Long
|
#undef Long
|
||||||
#undef ULong
|
#undef ULong
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#if (INT_MAX >> 30) && !(INT_MAX >> 31)
|
#if (INT_MAX >> 30) && !(INT_MAX >> 31)
|
||||||
#define Long int
|
#define Long int
|
||||||
@ -195,7 +198,7 @@
|
|||||||
#error No 32bit integer
|
#error No 32bit integer
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_LONG_LONG
|
#if defined(HAVE_LONG_LONG) && (HAVE_LONG_LONG)
|
||||||
#define Llong LONG_LONG
|
#define Llong LONG_LONG
|
||||||
#else
|
#else
|
||||||
#define NO_LONG_LONG
|
#define NO_LONG_LONG
|
||||||
@ -221,12 +224,12 @@
|
|||||||
#ifdef MALLOC
|
#ifdef MALLOC
|
||||||
extern void *MALLOC(size_t);
|
extern void *MALLOC(size_t);
|
||||||
#else
|
#else
|
||||||
#define MALLOC xmalloc
|
#define MALLOC malloc
|
||||||
#endif
|
#endif
|
||||||
#ifdef FREE
|
#ifdef FREE
|
||||||
extern void FREE(void*);
|
extern void FREE(void*);
|
||||||
#else
|
#else
|
||||||
#define FREE xfree
|
#define FREE free
|
||||||
#endif
|
#endif
|
||||||
#ifndef NO_SANITIZE
|
#ifndef NO_SANITIZE
|
||||||
#define NO_SANITIZE(x, y) y
|
#define NO_SANITIZE(x, y) y
|
||||||
@ -502,7 +505,7 @@ extern double rnd_prod(double, double), rnd_quot(double, double);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ATOMIC_PTR_CAS
|
#ifndef ATOMIC_PTR_CAS
|
||||||
#define ATOMIC_PTR_CAS(var, old, new) ((var) = (new), (old))
|
#define ATOMIC_PTR_CAS(var, old, new) ((var) = (new), (void *)(old))
|
||||||
#endif
|
#endif
|
||||||
#ifndef LIKELY
|
#ifndef LIKELY
|
||||||
#define LIKELY(x) (x)
|
#define LIKELY(x) (x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user