mirror of
https://github.com/neovim/neovim.git
synced 2025-11-07 11:14:26 +00:00
Merge pull request #3992 from Pyrohh/shada
[RFC] shada.c: Fix HAVE_BE64TOH check
This commit is contained in:
@@ -1,8 +1,3 @@
|
|||||||
#ifdef HAVE_BE64TOH
|
|
||||||
# define _BSD_SOURCE 1
|
|
||||||
# define _DEFAULT_SOURCE 1
|
|
||||||
# include <endian.h>
|
|
||||||
#endif
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
@@ -49,6 +44,12 @@
|
|||||||
#include "nvim/lib/khash.h"
|
#include "nvim/lib/khash.h"
|
||||||
#include "nvim/lib/kvec.h"
|
#include "nvim/lib/kvec.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_BE64TOH
|
||||||
|
# define _BSD_SOURCE 1
|
||||||
|
# define _DEFAULT_SOURCE 1
|
||||||
|
# include <endian.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
// Note: when using bufset hash pointers are intentionally casted to uintptr_t
|
// Note: when using bufset hash pointers are intentionally casted to uintptr_t
|
||||||
// and not to khint32_t or khint64_t: this way compiler must give a warning
|
// and not to khint32_t or khint64_t: this way compiler must give a warning
|
||||||
// (-Wconversion) when types change.
|
// (-Wconversion) when types change.
|
||||||
|
|||||||
Reference in New Issue
Block a user