definition of ptrdiff_t was wrong
This commit is contained in:
parent
d87444a7fb
commit
6e685b9fcc
1 changed files with 2 additions and 2 deletions
|
@ -13,9 +13,9 @@
|
||||||
|
|
||||||
#define offsetof(type, ident) ((size_t) &(((type *)0)->ident))
|
#define offsetof(type, ident) ((size_t) &(((type *)0)->ident))
|
||||||
|
|
||||||
#if _EM_PSIZE == 2
|
#if _EM_PSIZE == _EM_WSIZE
|
||||||
typedef int ptrdiff_t; /* result of substracting two pointers */
|
typedef int ptrdiff_t; /* result of substracting two pointers */
|
||||||
#elif _EM_PSIZE == 4
|
#elif _EM_PSIZE == _EM_LSIZE
|
||||||
typedef long ptrdiff_t; /* result of substracting two pointers */
|
typedef long ptrdiff_t; /* result of substracting two pointers */
|
||||||
#else
|
#else
|
||||||
#error garbage pointer size
|
#error garbage pointer size
|
||||||
|
|
Loading…
Reference in a new issue