]> granicus.if.org Git - graphviz/commitdiff
Add explicit extern declaration for case of having triangle.c.
authorerg <devnull@localhost>
Fri, 27 Jun 2008 22:41:18 +0000 (22:41 +0000)
committererg <devnull@localhost>
Fri, 27 Jun 2008 22:41:18 +0000 (22:41 +0000)
At some point, it can just include cgraph.h.
Though ideally subpackages like agxbuf and agerr should be
available separately.

lib/neatogen/delaunay.c

index d6e2d21fe8aad47f1fb2a83d4d193d6e62279be2..3b0168997c0d548d8c19acea51b83a162a1af01e 100644 (file)
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
-#include "neato.h"   /* For agerr() */
 #endif
 
+ /* until we can include cgraph.h or something else */
+typedef enum { AGWARN, AGERR, AGMAX, AGPREV } agerrlevel_t;
+extern int agerr(agerrlevel_t level, char *fmt, ...);
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>