From 097353b726c20a1f659c0cd76c0af2a9865e49ed Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Thu, 16 Oct 2008 16:24:29 -0400 Subject: [PATCH] Force use of --- champlain-gtk/Makefile.am | 2 +- champlain-gtk/champlain-gtk.h | 28 ++++++++++++++++++++++++++++ champlain-gtk/champlainviewembed.h | 4 ++++ demos/launcher.c | 2 +- 4 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 champlain-gtk/champlain-gtk.h diff --git a/champlain-gtk/Makefile.am b/champlain-gtk/Makefile.am index 5082e12..9b75425 100644 --- a/champlain-gtk/Makefile.am +++ b/champlain-gtk/Makefile.am @@ -29,7 +29,7 @@ libchamplain_include_HEADERS = champlainviewembed.h libchamplain_gtk_0_2_la_LDFLAGS= -version-info $(LIBRARY_VERSION) -AM_CPPFLAGS = $(DEPS_CFLAGS) -I$(top_srcdir) +AM_CPPFLAGS = $(DEPS_CFLAGS) -I$(top_srcdir) -DCHAMPLAIN_GTK_COMPILATION AM_LDFLAGS = $(DEPS_LIBS) -export-dynamic -export-symbols-regex ^champlain_.* EXTRA_DIST = $(CHAMPLAIN_GTK_MARSHAL_LIST) diff --git a/champlain-gtk/champlain-gtk.h b/champlain-gtk/champlain-gtk.h new file mode 100644 index 0000000..e54b847 --- /dev/null +++ b/champlain-gtk/champlain-gtk.h @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2008 Pierre-Luc Beaudoin + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef CHAMPLAIN_GTK_H +#define CHAMPLAIN_GTK_H + +#define __CHAMPLAIN_GTK_CHAMPLAIN_GTK_H_INSIDE__ + +#include + +#undef __CHAMPLAIN_GTK_CHAMPLAIN_GTK_H_INSIDE__ + +#endif diff --git a/champlain-gtk/champlainviewembed.h b/champlain-gtk/champlainviewembed.h index c897873..7eeb35c 100644 --- a/champlain-gtk/champlainviewembed.h +++ b/champlain-gtk/champlainviewembed.h @@ -15,6 +15,10 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ + +#if !defined (__CHAMPLAIN_GTK_CHAMPLAIN_GTK_H_INSIDE__) && !defined (CHAMPLAIN_GTK_COMPILATION) +#error "Only can be included directly." +#endif #ifndef CHAMPLAIN_VIEW_EMBED_H #define CHAMPLAIN_VIEW_EMBED_H diff --git a/demos/launcher.c b/demos/launcher.c index d85fe5f..bd88c60 100644 --- a/demos/launcher.c +++ b/demos/launcher.c @@ -21,7 +21,7 @@ #include #include -#include +#include #include #define OSM_MAP "Open Street Map" -- 2.39.5