]> granicus.if.org Git - gc/commitdiff
Minor adjustment of libcord visibility fix
authorIvan Maidanski <ivmai@mail.ru>
Mon, 16 Jan 2012 04:42:33 +0000 (08:42 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 16 Jan 2012 07:43:30 +0000 (11:43 +0400)
* 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.

cord/cord.am
cord/cordbscs.c
cord/cordprnt.c
cord/cordxtra.c

index f95fedf8c21a1439ae54e5442340f5867bd692c5..7d3fbe552fc1564005a18117811dc382590197d4 100644 (file)
@@ -3,7 +3,7 @@ lib_LTLIBRARIES += libcord.la
 
 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 \
index eace2e9cdf58007f441ee4e6270e8817cbde8e92..0314b7aebb22fd5b7299d37e1cf2cdb4b0fa6299 100644 (file)
  * 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>
index f4c63868acce7ef30b9d8cf142d6ba6053b6bbd3..5c8ba8c44706c162f27ed37ca48742bd8e86cdf4 100644 (file)
 /* 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>
index abb34f641081056abc530c98d76a5511a8766422..19acafea05b4399522c44293dd012c14b701a742 100644 (file)
  * 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>