mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 00:18:33 +00:00
unittest,memory: Fix tests
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
#ifndef NVIM_MEMORY_H
|
#ifndef NVIM_MEMORY_H
|
||||||
#define NVIM_MEMORY_H
|
#define NVIM_MEMORY_H
|
||||||
|
|
||||||
|
#include <stdbool.h> // for bool
|
||||||
#include <stdint.h> // for uint8_t
|
#include <stdint.h> // for uint8_t
|
||||||
#include <stddef.h> // for size_t
|
#include <stddef.h> // for size_t
|
||||||
#include <time.h> // for time_t
|
#include <time.h> // for time_t
|
||||||
|
|
||||||
/// `malloc()` function signature
|
/// `malloc()` function signature
|
||||||
typedef void *(*MemMalloc)(size_t);
|
typedef void *(*MemMalloc)(size_t);
|
||||||
|
@@ -123,6 +123,7 @@ function Gcc:init_defines()
|
|||||||
self:define('INIT', {'...'}, '')
|
self:define('INIT', {'...'}, '')
|
||||||
self:define('_GNU_SOURCE')
|
self:define('_GNU_SOURCE')
|
||||||
self:define('INCLUDE_GENERATED_DECLARATIONS')
|
self:define('INCLUDE_GENERATED_DECLARATIONS')
|
||||||
|
self:define('UNIT_TESTING')
|
||||||
-- Needed for FreeBSD
|
-- Needed for FreeBSD
|
||||||
self:define('_Thread_local', nil, '')
|
self:define('_Thread_local', nil, '')
|
||||||
-- Needed for macOS Sierra
|
-- Needed for macOS Sierra
|
||||||
|
Reference in New Issue
Block a user