[scotch] 02/03: Include stdio.h in scotch.h (in C).

Drew Parsons dparsons at moszumanska.debian.org
Thu Nov 16 17:15:35 UTC 2017


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

dparsons pushed a commit to tag debian/6.0.4.dfsg1-4
in repository scotch.

commit 30b4a24a3e7355a6b70e39f73c7ff30ee032ef9b
Author: Drew Parsons <dparsons at debian.org>
Date:   Fri Nov 17 01:00:43 2017 +0800

    Include stdio.h in scotch.h (in C).
---
 debian/changelog | 1 +
 debian/rules     | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ace9236..29d1d9c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ scotch (6.0.4.dfsg1-4) UNRELEASED; urgency=medium
   * Team upload.
   * Rename correct-ptscotch-header.patch as include_headers.patch:
     include scotch.h in [par]metis.h to define SCOTCH_Num.
+  * Include stdio.h in scotch.h (in C).
 
  -- Drew Parsons <dparsons at debian.org>  Fri, 17 Nov 2017 00:56:50 +0800
 
diff --git a/debian/rules b/debian/rules
index 3c0aa80..9c349e8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -132,7 +132,7 @@ install: build
 	done
 #
 #       Add "#include <cstdio>" to main [pt]scotch.h
-	find . -name \*scotch.h | xargs perl -pi -e "s|\/\*\+ Version flags|\#ifdef \_\_cplusplus\n\#include \<cstdio\>\n\#endif\n\n\/\*\+ Version flags|"
+	find . -name \*scotch.h | xargs perl -pi -e "s|\/\*\+ Version flags|\#ifdef \_\_cplusplus\n\#include \<cstdio\>\n\#else\n\#include \<stdio.h\>\n\#endif\n\n\/\*\+ Version flags|"
 
 
 clean:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/scotch.git



More information about the debian-science-commits mailing list