From 6c2a0f5f6ee3d8d0601bfe2b8b531603f9ba5c3c Mon Sep 17 00:00:00 2001 From: sleeptightAnsiC <91839286+sleeptightAnsiC@users.noreply.github.com> Date: Fri, 7 Mar 2025 14:42:02 +0100 Subject: [PATCH] [examples] fix: use quotation marks when including raylib.h ...so it will always prioritize local version of raylib instead of system-wide installations, which is a huge problem when testing any changes done locally to raylib as it might cause silent mismatch issues. There were only 4 examples affected by this issue which were using `#include `. Other examples use proper `#include "raylib.h"` Fixes: https://github.com/raysan5/raylib/issues/4820 --- examples/shapes/shapes_draw_circle_sector.c | 2 +- examples/shapes/shapes_draw_rectangle_rounded.c | 2 +- examples/shapes/shapes_draw_ring.c | 2 +- examples/textures/textures_image_channel.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/shapes/shapes_draw_circle_sector.c b/examples/shapes/shapes_draw_circle_sector.c index e64055c81..1485c464e 100644 --- a/examples/shapes/shapes_draw_circle_sector.c +++ b/examples/shapes/shapes_draw_circle_sector.c @@ -15,7 +15,7 @@ * ********************************************************************************************/ -#include +#include "raylib.h" #define RAYGUI_IMPLEMENTATION #include "raygui.h" // Required for GUI controls diff --git a/examples/shapes/shapes_draw_rectangle_rounded.c b/examples/shapes/shapes_draw_rectangle_rounded.c index ed7e032d1..614ed54b1 100644 --- a/examples/shapes/shapes_draw_rectangle_rounded.c +++ b/examples/shapes/shapes_draw_rectangle_rounded.c @@ -15,7 +15,7 @@ * ********************************************************************************************/ -#include +#include "raylib.h" #define RAYGUI_IMPLEMENTATION #include "raygui.h" // Required for GUI controls diff --git a/examples/shapes/shapes_draw_ring.c b/examples/shapes/shapes_draw_ring.c index daee5cbf5..f7a18bdec 100644 --- a/examples/shapes/shapes_draw_ring.c +++ b/examples/shapes/shapes_draw_ring.c @@ -15,7 +15,7 @@ * ********************************************************************************************/ -#include +#include "raylib.h" #define RAYGUI_IMPLEMENTATION #include "raygui.h" // Required for GUI controls diff --git a/examples/textures/textures_image_channel.c b/examples/textures/textures_image_channel.c index cebe61651..5e159b984 100644 --- a/examples/textures/textures_image_channel.c +++ b/examples/textures/textures_image_channel.c @@ -17,7 +17,7 @@ * ********************************************************************************************/ -#include +#include "raylib.h" //------------------------------------------------------------------------------------ // Program main entry point