[med-svn] [libfastahack] 01/01: Correct the patch to correct compilination with mixed C anc C++ code
Gert Wollny
gert-guest at moszumanska.debian.org
Thu Jun 23 09:43:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
gert-guest pushed a commit to branch master
in repository libfastahack.
commit d2024ad7e39e242af0c6e3cc19be0aaa8645b628
Author: Gert Wollny <gw.fossdev at gmail.com>
Date: Thu Jun 23 07:41:29 2016 +0000
Correct the patch to correct compilination with mixed C anc C++ code
The original code compile all with C++, but when using autotools, the
C file is compile with t a C compiler resulting in C style function names.
This commit adds the needed extern declarations to the corresponding header
file.
---
debian/patches/autoconf.patch | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/debian/patches/autoconf.patch b/debian/patches/autoconf.patch
index 5045599..5e61598 100644
--- a/debian/patches/autoconf.patch
+++ b/debian/patches/autoconf.patch
@@ -141,3 +141,25 @@ Description: Add autoconf stuff to enable simple library creation
- rm -rf fastahack *.o stage
-
-.PHONY: clean
+--- a/disorder.h
++++ b/disorder.h
+@@ -24,6 +24,10 @@
+ #ifndef __DISORDER_H_
+ #define __DISORDER_H_
+
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ /** Max number of bytes (i.e., tokens) */
+ #define LIBDO_MAX_BYTES 256
+
+@@ -59,4 +63,8 @@
+ /** Returns the ratio of entropy to maxentropy */
+ float get_entropy_ratio(void);
+
++#ifdef __cplusplus
++}
++#endif
++
+ #endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libfastahack.git
More information about the debian-med-commit
mailing list