[Forensics-changes] [yara] 31/192: Include windows.h instead of fileapi.h
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:31:43 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.6.0
in repository yara.
commit ec67ad76c79a46ae7cf052315adbb724897c3eb7
Author: plusvic <plusvic at gmail.com>
Date: Wed Sep 21 09:21:41 2016 +0200
Include windows.h instead of fileapi.h
Including fileapi.h alone causes a "No target architecture" error. See: http://stackoverflow.com/questions/4845198/fatal-error-no-target-architecture-in-visual-studio
---
libyara/lexer.c | 2 +-
libyara/lexer.l | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libyara/lexer.c b/libyara/lexer.c
index b070003..70e33ce 100644
--- a/libyara/lexer.c
+++ b/libyara/lexer.c
@@ -758,7 +758,7 @@ with noyywrap then we can remove this pragma.
#include <setjmp.h>
#if defined(_WIN32) || defined(__CYGWIN__)
-#include <fileapi.h>
+#include <windows.h>
#else
#include <unistd.h>
#endif
diff --git a/libyara/lexer.l b/libyara/lexer.l
index fca2ed7..402d802 100644
--- a/libyara/lexer.l
+++ b/libyara/lexer.l
@@ -51,7 +51,7 @@ with noyywrap then we can remove this pragma.
#include <setjmp.h>
#if defined(_WIN32) || defined(__CYGWIN__)
-#include <fileapi.h>
+#include <windows.h>
#else
#include <unistd.h>
#endif
--
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