mirror of
https://github.com/xemu-project/implot.git
synced 2026-04-30 09:46:02 -07: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:
+4
-4
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user