diff --git a/imnodes.cpp b/imnodes.cpp index d35af43..cbffe65 100755 --- a/imnodes.cpp +++ b/imnodes.cpp @@ -13,6 +13,13 @@ #define IMGUI_DEFINE_MATH_OPERATORS #include "imgui_internal.h" +// Check minimum ImGui version +#define MINIMUM_COMPATIBLE_IMGUI_VERSION 16401 +#if IMGUI_VERSION_NUM < MINIMUM_COMPATIBLE_IMGUI_VERSION +#error \ + "Minimum ImGui version requirement not met -- please use a newer version!" +#endif + #include #include #include