diff options
| author | Bram Moolenaar <Bram@vim.org> | 2016-07-17 20:37:43 +0200 |
|---|---|---|
| committer | Bram Moolenaar <Bram@vim.org> | 2016-07-17 20:37:43 +0200 |
| commit | 840268400dc8fda62a14f8a084e8b1ea46619454 (patch) | |
| tree | b0e1ff5ffdb4a9cf5862d41f6a1f3e11f27f3ff1 /src/vim.h | |
| parent | e87e6dddc2b2a99572ec0db0833c052214c4fbd3 (diff) | |
| download | vim-git-840268400dc8fda62a14f8a084e8b1ea46619454.tar.gz | |
patch 7.4.2062v7.4.2062
Problem: Using dummy variable to compute struct member offset.
Solution: Use offsetof().
Diffstat (limited to 'src/vim.h')
| -rw-r--r-- | src/vim.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -505,6 +505,9 @@ typedef unsigned long u8char_T; /* long should be 32 bits or more */ #endif #include <stdarg.h> +/* for offsetof() */ +#include <stddef.h> + #if defined(HAVE_SYS_SELECT_H) && \ (!defined(HAVE_SYS_TIME_H) || defined(SYS_SELECT_WITH_SYS_TIME)) # include <sys/select.h> |
