mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
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:
@@ -128,6 +128,7 @@ int main() {
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "nvim/memory.h"
|
||||
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user