diff options
author | Michael Reed <Pyrohh@users.noreply.github.com> | 2016-01-13 16:16:52 -0500 |
---|---|---|
committer | Michael Reed <Pyrohh@users.noreply.github.com> | 2016-01-13 16:16:52 -0500 |
commit | 573d65c738dd2e5f4ee92a7f20946411206021f7 (patch) | |
tree | d1082b085bb8461d6f514c41df564d6bce84ee95 | |
parent | 7f3999ac806daefa078b4db0781bfc1e190e135e (diff) | |
parent | 852aaa5d4208f32f7485c20a78c9af88da83e8de (diff) | |
download | rneovim-573d65c738dd2e5f4ee92a7f20946411206021f7.tar.gz rneovim-573d65c738dd2e5f4ee92a7f20946411206021f7.tar.bz2 rneovim-573d65c738dd2e5f4ee92a7f20946411206021f7.zip |
Merge pull request #3992 from Pyrohh/shada
[RFC] shada.c: Fix HAVE_BE64TOH check
-rw-r--r-- | src/nvim/shada.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c index 347bd8664c..59ef2a0d28 100644 --- a/src/nvim/shada.c +++ b/src/nvim/shada.c @@ -1,8 +1,3 @@ -#ifdef HAVE_BE64TOH -# define _BSD_SOURCE 1 -# define _DEFAULT_SOURCE 1 -# include <endian.h> -#endif #include <stdlib.h> #include <stddef.h> #include <stdbool.h> @@ -49,6 +44,12 @@ #include "nvim/lib/khash.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 // and not to khint32_t or khint64_t: this way compiler must give a warning // (-Wconversion) when types change. |