The GVDLL symbol is defined in config.h for autotools builds and an
upcoming commit which changes cghdr.h to use GVDLL to control the
storage-class attribute declarations would otherwise cause errors like
this:
C:\Users\magja\graphviz\cmd\tools/gc.c:333: undefined reference to `__imp_agapply'
Towards https://gitlab.com/graphviz/graphviz/-/issues/2173.
#pragma once
+#include "config.h"
+
#define _BLD_cgraph 1
#ifdef _WIN32
# define CGHDR_API extern
#endif
-#include "config.h"
-
#include <cgraph.h>
#include <ctype.h>