diff --git a/implot.cpp b/implot.cpp index bc1022e..5f6b9ce 100644 --- a/implot.cpp +++ b/implot.cpp @@ -85,8 +85,9 @@ You can read releases logs https://github.com/epezent/implot/releases for more d #endif // Global plot context +#ifndef GImPlot ImPlotContext* GImPlot = NULL; - +#endif //----------------------------------------------------------------------------- // Struct Implementations //----------------------------------------------------------------------------- diff --git a/implot_internal.h b/implot_internal.h index 2100978..802cf35 100644 --- a/implot_internal.h +++ b/implot_internal.h @@ -92,8 +92,9 @@ struct ImPlotNextPlotData; //----------------------------------------------------------------------------- // [SECTION] Context Pointer //----------------------------------------------------------------------------- - +#ifndef GImPlot extern IMPLOT_API ImPlotContext* GImPlot; // Current implicit context pointer +#endif //----------------------------------------------------------------------------- // [SECTION] Generic Helpers