public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9da9627
)
changed offsetof(), so it will not generate a warning on 2-4 machines
author
eck
<none@none>
Mon, 29 Oct 1990 13:52:18 +0000
(13:52 +0000)
committer
eck
<none@none>
Mon, 29 Oct 1990 13:52:18 +0000
(13:52 +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
aa4c370
..
aa60ff6
100644
(file)
--- a/
lang/cem/libcc.ansi/headers/stddef.h
+++ b/
lang/cem/libcc.ansi/headers/stddef.h
@@
-11,7
+11,8
@@
#define NULL ((void *)0)
-#define offsetof(type, ident) ((size_t) &(((type *)0)->ident))
+#define offsetof(type, ident) ((size_t) (unsigned long) (char *)(&((type *)0)->ident))
+
#if _EM_PSIZE == _EM_WSIZE
typedef int ptrdiff_t; /* result of substracting two pointers */