From 0e6b20d957c682cd9bc7712e2869384c4801b985 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 12 Dec 2024 16:40:11 +0100 Subject: Put ABI breaking changes under ABI guards (#1139) This reverts the improvement of #1139 in the default build which is now only available with FL_ABI_VERSION=10401 or higher. Users that need this improvement need to build with the required ABI version by setting it with configure or CMake. --- FL/Fl_Graphics_Driver.H | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'FL/Fl_Graphics_Driver.H') diff --git a/FL/Fl_Graphics_Driver.H b/FL/Fl_Graphics_Driver.H index 1bb3632f9..37210173a 100644 --- a/FL/Fl_Graphics_Driver.H +++ b/FL/Fl_Graphics_Driver.H @@ -57,7 +57,12 @@ typedef struct _PangoFontDescription PangoFontDescription; // See issue #1139: "FL_REGION_STACK_SIZE could be increased" // and issue #1140: "Fix static array allocation". -#define FL_REGION_STACK_SIZE 64 +#if FL_ABI_VERSION >= 10401 +# define FL_REGION_STACK_SIZE 64 +#else +# define FL_REGION_STACK_SIZE 10 +#endif + #define FL_MATRIX_STACK_SIZE 32 /** -- cgit v1.2.3