aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2014-07-06 16:54:59 +0200
committerNicolas Hillegeer <nicolas@hillegeer.com>2014-07-16 19:05:34 +0200
commit08fad0f8f6601e93b325990b4d3bba8533f34c2f (patch)
tree13c39a724502284ad7f8834bda1d127eaaab4a32 /src
parent90a206d3321dcf8b1ad362501cada5e80135891c (diff)
downloadrneovim-08fad0f8f6601e93b325990b4d3bba8533f34c2f.tar.gz
rneovim-08fad0f8f6601e93b325990b4d3bba8533f34c2f.tar.bz2
rneovim-08fad0f8f6601e93b325990b4d3bba8533f34c2f.zip
hashtab.h: don't include vim.h
Including vim.h in another header filer is asking for trouble. Test code that includes separate header files (e.g.: cimport './src/nvim/buffer.h'), has a really bad time with this. This is just one piece of the puzzle though.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/hashtab.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/hashtab.h b/src/nvim/hashtab.h
index 172f5ca13e..7233d8c47c 100644
--- a/src/nvim/hashtab.h
+++ b/src/nvim/hashtab.h
@@ -1,7 +1,9 @@
#ifndef NVIM_HASHTAB_H
#define NVIM_HASHTAB_H
-#include "nvim/vim.h"
+#include <stddef.h>
+
+#include "nvim/types.h"
/// Type for hash number (hash calculation result).
typedef size_t hash_T;