From 84d6533cb8112f23a34d3de76435a10f4620f4b8 Mon Sep 17 00:00:00 2001 From: AlexeyAB <alexeyab84@gmail.com> Date: Mon, 23 Oct 2017 13:43:03 +0000 Subject: [PATCH] Fixed OpenCV usage in the yolo_console_dll.cpp --- src/utils.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/utils.h b/src/utils.h index bbc6765..9949d6d 100644 --- a/src/utils.h +++ b/src/utils.h @@ -4,6 +4,10 @@ #include <time.h> #include "list.h" +#if defined(_MSC_VER) && _MSC_VER < 1900 + #define snprintf(buf,len, format,...) _snprintf_s(buf, len,len, format, __VA_ARGS__) +#endif + #define SECRET_NUM -1234 #define TWO_PI 6.2831853071795864769252866 @@ -59,6 +63,9 @@ char *find_char_arg(int argc, char **argv, char *arg, char *def); int sample_array(float *a, int n); void print_statistics(float *a, int n); +unsigned int random_gen(); +float random_float(); +float rand_uniform_strong(float min, float max); #endif -- Gitblit v1.10.0