[Forensics-changes] [yara] 367/368: Visual Studio 2015 (_MSC_VER == 1900) defines the snprintf function, so avoid defining it in those cases. (#483)

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:31:01 UTC 2017


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

bengen pushed a commit to annotated tag v3.5.0
in repository yara.

commit ab6d7486c85f71944c420dc2510560beefdae17b
Author: Marc-Antoine Courteau <macourteau at users.noreply.github.com>
Date:   Mon Aug 1 16:57:56 2016 -0400

    Visual Studio 2015 (_MSC_VER == 1900) defines the snprintf function, so avoid defining it in those cases. (#483)
---
 libyara/libyara.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libyara/libyara.c b/libyara/libyara.c
index e1b16c2..8143ab5 100644
--- a/libyara/libyara.c
+++ b/libyara/libyara.c
@@ -42,8 +42,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #endif
 
 #if defined(_WIN32) || defined(__CYGWIN__)
+#if !defined(_MSC_VER) || (defined(_MSC_VER) && (_MSC_VER < 1900))
 #define snprintf _snprintf
 #endif
+#endif
 
 
 YR_THREAD_STORAGE_KEY tidx_key;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list