summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-11-19 20:34:59 +0100
committerBram Moolenaar <Bram@vim.org>2017-11-19 20:34:59 +0100
commit40e280d949fa26e33f69c4bf80ccc0b70f2e13f6 (patch)
tree109970e03f15ef98867cbf23f10d3b8a4917e9f9
parent7221fce8b395972b57aea5f36ba2844fe1d4c259 (diff)
patch 8.0.1321: can't build huge version with Athenav8.0.1321
Problem: Can't build huge version with Athena. (Mark Kelly) Solution: Move including beval.h to before structs.h. Include beval.pro like other proto files.
-rw-r--r--src/beval.h1
-rw-r--r--src/proto.h4
-rw-r--r--src/version.c2
-rw-r--r--src/vim.h7
4 files changed, 9 insertions, 5 deletions
diff --git a/src/beval.h b/src/beval.h
index 6f9467cd6b..f4d1d80e9a 100644
--- a/src/beval.h
+++ b/src/beval.h
@@ -78,7 +78,6 @@ typedef struct BalloonEvalStruct
#define EVAL_OFFSET_X 15 /* displacement of beval topleft corner from pointer */
#define EVAL_OFFSET_Y 10
-#include "beval.pro"
#ifdef FEAT_BEVAL_GUI
# include "gui_beval.pro"
#endif
diff --git a/src/proto.h b/src/proto.h
index a60d3c8959..5513746dd9 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -201,7 +201,9 @@ void qsort(void *base, size_t elm_count, size_t elm_size, int (*cmp)(const void
/* Ugly solution for "BalloonEval" not being defined while it's used in some
* .pro files. */
-# ifndef FEAT_BEVAL
+# ifdef FEAT_BEVAL
+# include "beval.pro"
+# else
# define BalloonEval int
# endif
diff --git a/src/version.c b/src/version.c
index 324a3601d0..48e3293822 100644
--- a/src/version.c
+++ b/src/version.c
@@ -772,6 +772,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1321,
+/**/
1320,
/**/
1319,
diff --git a/src/vim.h b/src/vim.h
index d5518f81d4..96bab71cff 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1809,14 +1809,15 @@ typedef int sock_T;
/* Include option.h before structs.h, because the number of window-local and
* buffer-local options is used there. */
-#include "option.h" /* options and default values */
+#include "option.h" /* options and default values */
+
+#include "beval.h" /* BalloonEval */
/* Note that gui.h is included by structs.h */
-#include "structs.h" /* file that defines many structures */
+#include "structs.h" /* defines many structures */
#include "alloc.h"
-#include "beval.h"
/* Values for "do_profiling". */
#define PROF_NONE 0 /* profiling not started */