From f1f4d68f7f1c4dc8cba8f9f22c7c85c90951ab0e Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 10 Aug 2015 10:26:39 -0600 Subject: [PATCH] Prevent imgui_internal.h from being included without imgui.h (piles of errors) --- imgui_internal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imgui_internal.h b/imgui_internal.h index 3df23dad..8512a635 100644 --- a/imgui_internal.h +++ b/imgui_internal.h @@ -7,6 +7,10 @@ #pragma once +#ifndef IMGUI_VERSION +#error Must include imgui.h before imgui_internal.h +#endif + #include // FILE* #include // sqrtf()