memory.h: don't include vim.h in header files

Also include stdint.h in khash.h. It was transitively included by vim.h via
memory.h before. khash.h accidentally relied on that.
This commit is contained in:
Nicolas Hillegeer
2014-07-12 19:35:57 +02:00
parent 1710fa4337
commit 32ddfec84f
2 changed files with 2 additions and 2 deletions

View File

@@ -128,6 +128,7 @@ int main() {
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <stdint.h>
#include "nvim/memory.h"

View File

@@ -1,8 +1,7 @@
#ifndef NVIM_MEMORY_H
#define NVIM_MEMORY_H
#include <stddef.h>
#include "nvim/vim.h"
#include <stddef.h> // for size_t
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "memory.h.generated.h"