projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates
[silc.git]
/
lib
/
silcutil
/
silctypes.h
diff --git
a/lib/silcutil/silctypes.h
b/lib/silcutil/silctypes.h
index 7c6bdd514b29437993bd7fd99669e5f6436f9fd5..04a9d88672228ad7a718c69f154f2f7b62216a9b 100644
(file)
--- a/
lib/silcutil/silctypes.h
+++ b/
lib/silcutil/silctypes.h
@@
-86,10
+86,7
@@
#endif
/***/
#endif
/***/
-/* Define offsetof */
-#ifndef offsetof
-#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
-#endif
+#define silc_offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#if SILC_SIZEOF_SHORT > 2
#error "size of the short must be 2 bytes"
#if SILC_SIZEOF_SHORT > 2
#error "size of the short must be 2 bytes"