From: Erwin Janssen Date: Wed, 21 Sep 2016 22:02:44 +0000 (+0200) Subject: Remove usage of HAVE_AST define X-Git-Tag: untagged-5fc0363bc76319758ff6~1^2^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c43ebb353c03fb2e98cfb87af43740bd037a91f;p=graphviz Remove usage of HAVE_AST define This define is never set, because there are no checks for the ast library. The checks using this define will never succeed, so they can be removed. --- diff --git a/lib/cgraph/cghdr.h b/lib/cgraph/cghdr.h index 8a706cb43..ab1195a92 100644 --- a/lib/cgraph/cghdr.h +++ b/lib/cgraph/cghdr.h @@ -25,10 +25,6 @@ #include -#ifdef HAVE_AST -#include -#include -#else #ifdef HAVE_VMALLOC #include #endif /* HAVE_VMALLOC */ @@ -39,7 +35,6 @@ #ifdef HAVE_UNISTD_H #include #endif /* HAVE_UNISTD_H */ -#endif /* HAVE_AST */ #ifdef DEBUG #include #else diff --git a/lib/cgraph/mem.c b/lib/cgraph/mem.c index 2c5544e78..16f2a92a8 100644 --- a/lib/cgraph/mem.c +++ b/lib/cgraph/mem.c @@ -15,7 +15,7 @@ /* memory management discipline and entry points */ -#if defined(HAVE_AST) || defined(HAVE_VMALLOC) +#if defined(HAVE_VMALLOC) /* vmalloc based allocator */ static void *memopen(void) diff --git a/tclpkg/tclpathplan/tclpathplan.c b/tclpkg/tclpathplan/tclpathplan.c index a193cd875..b81170027 100644 --- a/tclpkg/tclpathplan/tclpathplan.c +++ b/tclpkg/tclpathplan/tclpathplan.c @@ -27,15 +27,10 @@ /* for sincos */ #define _GNU_SOURCE 1 -#ifdef HAVE_AST -#include -#include -#else #include #include #include #include -#endif #include #include