* cord/cord.am (libcord_la_CPPFLAGS): Do not define CORD_BUILD and
GC_DLL here (same approach as for GC_BUILD).
* cord/cordbscs.c: Include config.h if HAVE_CONFIG_H (for GC_DLL) and
define CORD_BUILD (before including cord.h).
* cord/cordprnt.c: Likewise.
* cord/cordxtra.c: Likewise.
libcord_la_LIBADD = $(top_builddir)/libgc.la
libcord_la_LDFLAGS = -version-info 1:3:0 -no-undefined
-libcord_la_CPPFLAGS = $(AM_CPPFLAGS) -DCORD_BUILD -DGC_DLL
+libcord_la_CPPFLAGS = $(AM_CPPFLAGS)
libcord_la_SOURCES = \
cord/cordbscs.c \
* modified is included with the above copyright notice.
*/
+#ifdef HAVE_CONFIG_H
+# include "private/config.h"
+#endif
+#ifndef CORD_BUILD
+# define CORD_BUILD
+#endif
+
# include "gc.h"
# include "cord.h"
# include <stdlib.h>
/* All this cruft is needed because we want to rely on the underlying */
/* sprintf implementation whenever possible. */
+#ifdef HAVE_CONFIG_H
+# include "private/config.h"
+#endif
+#ifndef CORD_BUILD
+# define CORD_BUILD
+#endif
+
#include "cord.h"
#include "ec.h"
#include <stdio.h>
* cord_basics.
*/
+#ifdef HAVE_CONFIG_H
+# include "private/config.h"
+#endif
+#ifndef CORD_BUILD
+# define CORD_BUILD
+#endif
+
# include <stdio.h>
# include <string.h>
# include <stdlib.h>