File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 3030
3131/* MALLOC_HEADERS_BEGIN */
3232#ifndef HAVE_MALLOC_USABLE_SIZE
33+ # ifdef _WIN32
34+ # define HAVE_MALLOC_USABLE_SIZE
35+ # define malloc_usable_size (a ) _msize(a)
36+ # elif defined HAVE_MALLOC_SIZE
37+ # define HAVE_MALLOC_USABLE_SIZE
38+ # define malloc_usable_size (a ) malloc_size(a)
39+ # endif
40+ #endif
41+
42+ #ifdef HAVE_MALLOC_USABLE_SIZE
3343# ifdef RUBY_ALTERNATIVE_MALLOC_HEADER
3444/* Alternative malloc header is included in ruby/missing.h */
3545# elif defined(HAVE_MALLOC_H )
3949# elif defined(HAVE_MALLOC_MALLOC_H )
4050# include <malloc/malloc.h>
4151# endif
42-
43- # ifdef _WIN32
44- # define HAVE_MALLOC_USABLE_SIZE
45- # define malloc_usable_size (a ) _msize(a)
46- # elif defined HAVE_MALLOC_SIZE
47- # define HAVE_MALLOC_USABLE_SIZE
48- # define malloc_usable_size (a ) malloc_size(a)
49- # endif
50- #else
51- # include <malloc.h>
5252#endif
5353
5454/* MALLOC_HEADERS_END */
You can’t perform that action at this time.
0 commit comments