From 56e3a652f983e4c1e7c067f4f00009f9ec65cbd2 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 9 Mar 2022 10:43:22 +0000 Subject: [PATCH] Fix ShaderVG compilation on macOS (and others?) We had a manual change in ShivaVG, to include the shConfig.h file explicitly, since the sources do not include it themselves. Replicate this change in our copy of ShaderVG. Necessary to fix compilation on macOS and likely FreeBSD as well. --- simgear/canvas/ShaderVG/src/shDefs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/simgear/canvas/ShaderVG/src/shDefs.h b/simgear/canvas/ShaderVG/src/shDefs.h index 5dcdb640..3ecf7bae 100644 --- a/simgear/canvas/ShaderVG/src/shDefs.h +++ b/simgear/canvas/ShaderVG/src/shDefs.h @@ -21,6 +21,12 @@ #ifndef __SHDEFS_H #define __SHDEFS_H +// FlightGear change : include shConfig.h here, since the logic below requires it. +// wondering if this file is supposed to be auto-included, since there is no explicit +// include of it anywhere in Shader/Shiva sources. +#include "shConfig.h" +// end of FlightGear change + /* Standard headers */ #ifdef VG_API_WINDOWS