older g++

This commit is contained in:
Vitor Santos Costa 2016-08-02 18:28:02 -05:00
parent a560031167
commit 99488a6cea
2 changed files with 5 additions and 2 deletions

View File

@ -25,7 +25,10 @@
#define SF_STORE ((special_functors *)HEAP_INIT_BASE) #define SF_STORE ((special_functors *)HEAP_INIT_BASE)
#endif #endif
#if defined(USE_OFFSETS)
#if 1
extern Atom AtomFoundVar, AtomFreeTerm, AtomNil, AtomDot;
#elif defined(USE_OFFSETS)
#define AtomFoundVar ((Atom)(&(((special_functors *)(NULL))->AtFoundVar))) #define AtomFoundVar ((Atom)(&(((special_functors *)(NULL))->AtFoundVar)))
#define AtomFreeTerm ((Atom)(&(((special_functors *)(NULL))->AtFreeTerm))) #define AtomFreeTerm ((Atom)(&(((special_functors *)(NULL))->AtFreeTerm)))
#define AtomNil ((Atom)(&(((special_functors *)(NULL))->AtNil))) #define AtomNil ((Atom)(&(((special_functors *)(NULL))->AtNil)))

View File

@ -72,7 +72,7 @@ typedef uint32_t UInt;
#define Int_F "I32d" #define Int_F "I32d"
#define UInt_F "I32u" #define UInt_F "I32u"
#elif SIZEOF_LONGINT == SIZEOF_INT_P #elif SIZEOF_LONG_INT == SIZEOF_INT_P
typedef long int Int; typedef long int Int;
typedef unsigned long int UInt; typedef unsigned long int UInt;