mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
1.8.7 shim for SIZET2NUM()
This commit is contained in:
parent
bc5e24760f
commit
77a2180dfa
1 changed files with 8 additions and 0 deletions
|
@ -1,5 +1,13 @@
|
|||
#include "rr.h"
|
||||
|
||||
#if !defined(SIZET2NUM)
|
||||
# if SIZEOF_SIZE_T == SIZEOF_LONG
|
||||
# define SIZET2NUM(n) ULONG2NUM(n)
|
||||
# else
|
||||
# define SIZET2NUM(n) ULL2NUM(n)
|
||||
# endif
|
||||
#endif /* ! defined(SIZET2NUM) */
|
||||
|
||||
namespace rr {
|
||||
void HeapStatistics::Init() {
|
||||
ClassBuilder("HeapStatistics").
|
||||
|
|
Loading…
Reference in a new issue