#include <glib/gtypes.h> /* for 'gchar' */
#define G_LOG_DOMAIN ((const gchar *)"Captive")
+
+/* Supplemental definitions not possible in this file. */
+#ifdef LIBCAPTIVE
+#include "captive/config2.h"
+#endif
])
AH_BOTTOM([
#endif /* !_CAPTIVE_CONFIG_H */
# $Id$
# automake source for include/captive directory Makefile
-# Copyright (C) 2002 Jan Kratochvil <project-captive@jankratochvil.net>
+# Copyright (C) 2002-2003 Jan Kratochvil <project-captive@jankratochvil.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
client-directory.h \
client-file.h \
client-file_info.h \
+ config2.h \
ldr.h \
ldr_exports.h \
macros.h \
--- /dev/null
+/* $Id$
+ * Supplemental include file for config.h of libcaptive
+ * Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; exactly version 2 of June 1991 is required
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+
+#ifndef _CAPTIVE_CONFIG2_H
+#define _CAPTIVE_CONFIG2_H 1
+
+
+/* We need to redefine it here as any '#undef' in config.h gets commented
+ * out during 'config.h.in' -> 'config.h' pass.
+ */
+#if defined(__GNUC__) && (__GNUC__ >= 3)
+#include <glib/gmacros.h> /* for 'G_STRLOC' */
+# undef G_STRLOC
+/* '__func__' does not string-concatenate! */
+# define G_STRLOC __func__
+#endif
+
+
+#endif /* _CAPTIVE_CONFIG2_H */