[med-svn] [libvcflib] 01/01: handle C/C++ properly

Gert Wollny gert-guest at moszumanska.debian.org
Fri Jun 24 09:35:58 UTC 2016


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

gert-guest pushed a commit to branch master
in repository libvcflib.

commit 7b918a60fef5fdee29de89f7b7cedc9c60c684c2
Author: Gert Wollny <gw.fossdev at gmail.com>
Date:   Fri Jun 24 09:32:32 2016 +0000

    handle C/C++ properly
---
 debian/patches/filevercmp.h.patch | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/debian/patches/filevercmp.h.patch b/debian/patches/filevercmp.h.patch
index 8142949..f6445ad 100644
--- a/debian/patches/filevercmp.h.patch
+++ b/debian/patches/filevercmp.h.patch
@@ -12,7 +12,7 @@ Description: Inject two files via quilt patch
 
 --- a/Makefile
 +++ b/Makefile
-@@ -186,7 +186,12 @@ $(FASTAHACK): pre
+@@ -186,7 +186,12 @@
  #	cd fsom && $(CXX) $(CXXFLAGS) -c fsom.c -lm
  
  $(FILEVERCMP): pre
@@ -28,7 +28,7 @@ Description: Inject two files via quilt patch
  	$(MAKE) bin/$@
 --- /dev/null
 +++ b/filevercmp/filevercmp.h
-@@ -0,0 +1,42 @@
+@@ -0,0 +1,51 @@
 +/*
 +   Copyright (C) 1995 Ian Jackson <iwj10 at cus.cam.ac.uk>
 +   Copyright (C) 2001 Anthony Towns <aj at azure.humbug.org.au>
@@ -68,8 +68,17 @@ Description: Inject two files via quilt patch
 +   PREFIX VER2 SUFFIX) < 0.
 +
 +   This function is intended to be a replacement for strverscmp. */
++
++#ifdef __cplusplus
++extern "C" {
++#endif   
++
 +int filevercmp (const char *s1, const char *s2);
 +
++#ifdef __cplusplus
++}
++#endif   
++
 +#endif /* FILEVERCMP_H */
 --- /dev/null
 +++ b/filevercmp/filevercmp.c

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



More information about the debian-med-commit mailing list