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

felix salfelder felix-guest at moszumanska.debian.org
Mon May 26 13:18:10 UTC 2014


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

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

commit 0fd6fa905ac8a1e261a5075ca785666746ae2067
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.
    
    Forwarded: not-needed
---
 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