From 7d550d350ecb5376665c2dce2ae24b91f82be866 Mon Sep 17 00:00:00 2001 From: SergeyN Date: Tue, 12 May 2020 18:41:34 +0200 Subject: [PATCH] warning fixes, removed conversions from float to double and back. removed static text buffers, use of secure sprintf functions on windows --- implot_demo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/implot_demo.cpp b/implot_demo.cpp index a117f3a..603e2b4 100644 --- a/implot_demo.cpp +++ b/implot_demo.cpp @@ -23,16 +23,16 @@ // ImPlot v0.2 WIP -#ifdef _MSC_VER -#pragma warning (disable: 4996) // 'This function or variable may be unsafe': strcpy, strdup, sprintf, vsnprintf, sscanf, fopen -#endif - #include "implot.h" #include #include #include #include // for 'float' overloads of elementary functions (sin,cos,etc) +#ifdef _MSC_VER +#define sprintf sprintf_s +#endif + namespace { float RandomRange( float min, float max ) {