[singular] 21/45: assert needs to be defined after #include "assert.h", also if -Ifactory is used.

felix salfelder felix-guest at alioth.debian.org
Sat Sep 14 13:57:04 UTC 2013


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

felix-guest pushed a commit to branch master-3-1-5
in repository singular.

commit 744d1ef26da73f82a498f2bf816ae7e729477be3
Author: Felix Salfelder <felix at salfelder.org>
Date:   Thu Feb 16 11:23:11 2012 +0100

    assert needs to be defined after #include "assert.h",
    also if -Ifactory is used.
---
 factory/assert.h |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/factory/assert.h b/factory/assert.h
index 3dd036b..d2933a1 100644
--- a/factory/assert.h
+++ b/factory/assert.h
@@ -128,3 +128,9 @@ extern "C" {
 #define PVIRT_CHARCC(msg) = 0
 #endif /* NOASSERT */
 /* }}} */
+
+
+//assert is expected to be available after '#include "assert.h"'
+#ifndef assert
+# define assert(a)
+#endif

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



More information about the debian-science-commits mailing list