[arrayfire] 03/79: Fixed 'snprintf' definition conflict in Visual Studio 2015

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Jun 15 13:38:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository arrayfire.

commit 94f254ae2651672ebe0a0636fdd384ba1d824285
Author: xumbu <dev at xumbu.org>
Date:   Tue Jun 2 23:03:13 2015 +0200

    Fixed 'snprintf' definition conflict in Visual Studio 2015
    
    Since Visual Studio 14 snprintf is already defined by default.
---
 include/af/defines.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/af/defines.h b/include/af/defines.h
index d17c8da..a0ec713 100644
--- a/include/af/defines.h
+++ b/include/af/defines.h
@@ -25,7 +25,9 @@
         #define true  1
     #endif
     #define __PRETTY_FUNCTION__ __FUNCSIG__
-    #define snprintf sprintf_s
+    #if _MSC_VER < 1900
+	    #define snprintf sprintf_s
+    #endif
     #define STATIC_ static
     #define SIZE_T_FRMT_SPECIFIER "%Iu"
     #define DEPRECATED(msg) __declspec(deprecated( msg ))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list