[Forensics-changes] [yara] 78/135: Add extern "C" directive to yara.h
Hilko Bengen
bengen at moszumanska.debian.org
Sat Jul 1 10:27:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag v3.1.0
in repository yara.
commit 7958ed41130d277631c414fe4dde96ddf2c929c2
Author: Victor M. Alvarez <plusvic at gmail.com>
Date: Thu Jul 24 18:40:26 2014 +0200
Add extern "C" directive to yara.h
---
libyara/include/yara.h | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/libyara/include/yara.h b/libyara/include/yara.h
index 4b6f261..8775285 100644
--- a/libyara/include/yara.h
+++ b/libyara/include/yara.h
@@ -17,13 +17,21 @@ limitations under the License.
#ifndef YR_YARA_H
#define YR_YARA_H
-#include <yara/error.h>
-#include <yara/utils.h>
-#include <yara/filemap.h>
-#include <yara/compiler.h>
-#include <yara/modules.h>
-#include <yara/object.h>
-#include <yara/libyara.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "yara/error.h"
+#include "yara/utils.h"
+#include "yara/filemap.h"
+#include "yara/compiler.h"
+#include "yara/modules.h"
+#include "yara/object.h"
+#include "yara/libyara.h"
+
+#ifdef __cplusplus
+} /* end extern "C" */
+#endif
#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