From 8feaadc69f5467201913d06eff678588034d9dce Mon Sep 17 00:00:00 2001 From: Jin Ma Date: Fri, 16 Aug 2013 15:24:55 +0800 Subject: [PATCH] Resolved a compiling error under Linux. --- modules/ocl/src/bgfg_mog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ocl/src/bgfg_mog.cpp b/modules/ocl/src/bgfg_mog.cpp index 33bf143d2..0bdfe6f2f 100644 --- a/modules/ocl/src/bgfg_mog.cpp +++ b/modules/ocl/src/bgfg_mog.cpp @@ -69,7 +69,7 @@ namespace cv } } -#if _MSC_VER +#if defined _MSC_VER #define snprintf sprintf_s #endif