1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-26 12:18:52 -05:00

warning fixes, removed conversions from float to double and back. removed static text buffers, use of secure sprintf functions on windows

This commit is contained in:
SergeyN 2020-05-12 18:41:34 +02:00
parent ea05677a7c
commit 7d550d350e

View File

@ -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 <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <cmath> // for 'float' overloads of elementary functions (sin,cos,etc)
#ifdef _MSC_VER
#define sprintf sprintf_s
#endif
namespace {
float RandomRange( float min, float max ) {