fix: Include auto/config.h before HAVE_* preprocessor checks

Closes #13533
This commit is contained in:
James McCoy
2020-12-15 07:35:06 -05:00
parent 82100a6bdb
commit 6c2eb903a9
4 changed files with 9 additions and 0 deletions

View File

@@ -7,6 +7,8 @@
#include <math.h> #include <math.h>
#include "auto/config.h"
#ifdef HAVE_LOCALE_H #ifdef HAVE_LOCALE_H
# include <locale.h> # include <locale.h>
#endif #endif

View File

@@ -8,9 +8,12 @@
# undef Boolean # undef Boolean
#endif #endif
#include "auto/config.h"
#ifdef HAVE_LOCALE_H #ifdef HAVE_LOCALE_H
# include <locale.h> # include <locale.h>
#endif #endif
#include "nvim/os/lang.h" #include "nvim/os/lang.h"
#include "nvim/os/os.h" #include "nvim/os/os.h"

View File

@@ -5,6 +5,8 @@
#include <uv.h> #include <uv.h>
#include "auto/config.h"
#include "nvim/ascii.h" #include "nvim/ascii.h"
#include "nvim/os/os.h" #include "nvim/os/os.h"
#include "nvim/garray.h" #include "nvim/garray.h"

View File

@@ -82,6 +82,8 @@
#include <string.h> #include <string.h>
#include <fcntl.h> #include <fcntl.h>
#include "auto/config.h"
#include "nvim/buffer.h" #include "nvim/buffer.h"
#include "nvim/ascii.h" #include "nvim/ascii.h"
#include "nvim/change.h" #include "nvim/change.h"