[Forensics-changes] [yara] 382/407: Add missing definitions in Windows

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:47 UTC 2017


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

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

commit 88a04172301f42e00c407ef0d9b2abaf72f48365
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Feb 5 12:56:21 2015 +0100

    Add missing definitions in Windows
---
 libyara/include/yara/object.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/libyara/include/yara/object.h b/libyara/include/yara/object.h
index 07a0340..aa429cf 100644
--- a/libyara/include/yara/object.h
+++ b/libyara/include/yara/object.h
@@ -17,6 +17,13 @@ limitations under the License.
 #ifndef YR_OBJECT_H
 #define YR_OBJECT_H
 
+#ifdef _MSC_VER
+#include <float.h>
+#define isnan _isnan
+#define INFINITY (DBL_MAX + DBL_MAX)
+#define NAN (INFINITY-INFINITY)
+#endif
+
 #include <yara/types.h>
 
 

-- 
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