From 399dcd9cc75f8968b7f5346c106afeef502893f9 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 8 Jun 2021 08:58:46 +0100 Subject: [PATCH] Revert "DemoRunner: Removed unused define" This reverts commit 271e66fbed0f89509849b1eb635dfe3408a8e4a4. --- examples/Assets/DemoUtilities.h | 4 ++++ .../Builds/Android/app/src/main/assets/DemoUtilities.h | 4 ++++ examples/GUI/WidgetsDemo.h | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/examples/Assets/DemoUtilities.h b/examples/Assets/DemoUtilities.h index fd906db2c0..96cf595a87 100644 --- a/examples/Assets/DemoUtilities.h +++ b/examples/Assets/DemoUtilities.h @@ -21,6 +21,10 @@ #include +#ifndef PIP_DEMO_UTILITIES_INCLUDED + #define PIP_DEMO_UTILITIES_INCLUDED 1 +#endif + //============================================================================== /* This file contains a bunch of miscellaneous utilities that are diff --git a/examples/DemoRunner/Builds/Android/app/src/main/assets/DemoUtilities.h b/examples/DemoRunner/Builds/Android/app/src/main/assets/DemoUtilities.h index fd906db2c0..96cf595a87 100644 --- a/examples/DemoRunner/Builds/Android/app/src/main/assets/DemoUtilities.h +++ b/examples/DemoRunner/Builds/Android/app/src/main/assets/DemoUtilities.h @@ -21,6 +21,10 @@ #include +#ifndef PIP_DEMO_UTILITIES_INCLUDED + #define PIP_DEMO_UTILITIES_INCLUDED 1 +#endif + //============================================================================== /* This file contains a bunch of miscellaneous utilities that are diff --git a/examples/GUI/WidgetsDemo.h b/examples/GUI/WidgetsDemo.h index 29652735dd..0613d8bc68 100644 --- a/examples/GUI/WidgetsDemo.h +++ b/examples/GUI/WidgetsDemo.h @@ -46,7 +46,9 @@ #pragma once -#include "../Assets/DemoUtilities.h" +#ifndef PIP_DEMO_UTILITIES_INCLUDED + #include "../Assets/DemoUtilities.h" +#endif //============================================================================== static void showBubbleMessage (Component& targetComponent, const String& textToShow,