AlexeyAB
2016-12-04 26b20b78f7589e23c3b89e1c315637cdd0fffc94
Fix: Can be compiled on MSVS 2013 (12.0.40629.00 update 5), but not on MSVS 2013 (12.0.21005.1)
3 files modified
12 ■■■■■ changed files
src/cuda.h 4 ●●●● patch | view | raw | blame | history
src/data.h 4 ●●●● patch | view | raw | blame | history
src/utils.h 4 ●●●● patch | view | raw | blame | history
src/cuda.h
@@ -1,6 +1,10 @@
#ifndef CUDA_H
#define CUDA_H
#if defined(_MSC_VER) && _MSC_VER < 1900
    #define inline __inline
#endif
extern int gpu_index;
#ifdef GPU
src/data.h
@@ -2,6 +2,10 @@
#define DATA_H
#include <pthread.h>
#if defined(_MSC_VER) && _MSC_VER < 1900
    #define inline __inline
#endif
#include "matrix.h"
#include "list.h"
#include "image.h"
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