summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2010-10-29 08:37:25 +0000
committerVincent Torri <vincent.torri@gmail.com>2010-10-29 08:37:25 +0000
commita2a90c6131726243957855ce76a5ed0d62aa80d7 (patch)
tree53957bad7d3c6c8c45b69739085d2b3b5435ef31
parent0ce8be250071e04d57150229d4e3eb5dfe07fbd7 (diff)
* src/lib/Evil.h:
define offsetof for Windows CE SVN revision: 53982
-rw-r--r--legacy/evil/ChangeLog5
-rw-r--r--legacy/evil/src/lib/Evil.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/legacy/evil/ChangeLog b/legacy/evil/ChangeLog
index c1efe0374c..b433e5720e 100644
--- a/legacy/evil/ChangeLog
+++ b/legacy/evil/ChangeLog
@@ -1,3 +1,8 @@
12010-10-29 Vincent Torri <doursse at users dot sf dot net>
2
3 * src/lib/Evil.h:
4 define offsetof for Windows CE
5
12010-10-22 Vincent Torri <doursse at users dot sf dot net> 62010-10-22 Vincent Torri <doursse at users dot sf dot net>
2 7
3 * src/lib/Makefile.am: 8 * src/lib/Makefile.am:
diff --git a/legacy/evil/src/lib/Evil.h b/legacy/evil/src/lib/Evil.h
index cdbaa77400..df658daf06 100644
--- a/legacy/evil/src/lib/Evil.h
+++ b/legacy/evil/src/lib/Evil.h
@@ -107,6 +107,12 @@ typedef SSIZE_T ssize_t;
107 107
108#endif /* _MSC_VER */ 108#endif /* _MSC_VER */
109 109
110#ifdef _WIN32_WCE
111# ifndef offsetof
112# define offsetof(type, ident) ((size_t)&(((type*)0)->ident))
113# endif
114#endif
115
110typedef unsigned long uid_t; 116typedef unsigned long uid_t;
111typedef unsigned long gid_t; 117typedef unsigned long gid_t;
112 118