diff src/vim.h @ 9570:695186e11daa v7.4.2062

commit https://github.com/vim/vim/commit/840268400dc8fda62a14f8a084e8b1ea46619454 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 17 20:37:43 2016 +0200 patch 7.4.2062 Problem: Using dummy variable to compute struct member offset. Solution: Use offsetof().
author Christian Brabandt <cb@256bit.org>
date Sun, 17 Jul 2016 20:45:05 +0200
parents 86af4a48c00a
children 5eaa708ab50d
line wrap: on
line diff
--- a/src/vim.h
+++ b/src/vim.h
@@ -505,6 +505,9 @@ typedef unsigned long u8char_T;	    /* l
 #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>