public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d87444a
)
definition of ptrdiff_t was wrong
author
eck
<none@none>
Wed, 4 Apr 1990 16:21:34 +0000
(16:21 +0000)
committer
eck
<none@none>
Wed, 4 Apr 1990 16:21:34 +0000
(16:21 +0000)
lang/cem/libcc.ansi/headers/stddef.h
patch
|
blob
|
history
diff --git
a/lang/cem/libcc.ansi/headers/stddef.h
b/lang/cem/libcc.ansi/headers/stddef.h
index
27ab5fd
..
b45f365
100644
(file)
--- a/
lang/cem/libcc.ansi/headers/stddef.h
+++ b/
lang/cem/libcc.ansi/headers/stddef.h
@@
-13,9
+13,9
@@
#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 */
-#elif _EM_PSIZE ==
4
+#elif _EM_PSIZE ==
_EM_LSIZE
typedef long ptrdiff_t; /* result of substracting two pointers */
#else
#error garbage pointer size