Add guard to prevent individual headers from being included directly.
This commit is contained in:
@ -96,7 +96,7 @@ libeek_la_SOURCES = \
|
|||||||
$(srcdir)/eek-enumtypes.c \
|
$(srcdir)/eek-enumtypes.c \
|
||||||
$(srcdir)/eek-marshalers.c
|
$(srcdir)/eek-marshalers.c
|
||||||
|
|
||||||
libeek_la_CFLAGS = $(GIO2_CFLAGS) $(PANGOCAIRO_CFLAGS) $(LIBCROCO_CFLAGS)
|
libeek_la_CFLAGS = -DEEK_COMPILATION=1 $(GIO2_CFLAGS) $(PANGOCAIRO_CFLAGS) $(LIBCROCO_CFLAGS)
|
||||||
libeek_la_LIBADD = $(GIO2_LIBS) $(PANGOCAIRO_LIBS) $(LIBCROCO_LIBS) -lm
|
libeek_la_LIBADD = $(GIO2_LIBS) $(PANGOCAIRO_LIBS) $(LIBCROCO_LIBS) -lm
|
||||||
|
|
||||||
if ENABLE_CLUTTER
|
if ENABLE_CLUTTER
|
||||||
@ -116,7 +116,7 @@ libeek_clutter_sources = \
|
|||||||
$(srcdir)/eek-clutter-renderer.c
|
$(srcdir)/eek-clutter-renderer.c
|
||||||
|
|
||||||
libeek_clutter_la_SOURCES = $(libeek_clutter_sources)
|
libeek_clutter_la_SOURCES = $(libeek_clutter_sources)
|
||||||
libeek_clutter_la_CFLAGS = $(CLUTTER_CFLAGS)
|
libeek_clutter_la_CFLAGS = -DEEK_COMPILATION=1 $(CLUTTER_CFLAGS)
|
||||||
libeek_clutter_la_LIBADD = libeek.la $(CLUTTER_LIBS)
|
libeek_clutter_la_LIBADD = libeek.la $(CLUTTER_LIBS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -130,7 +130,7 @@ libeek_gtk_sources = \
|
|||||||
$(srcdir)/eek-gtk-renderer.c
|
$(srcdir)/eek-gtk-renderer.c
|
||||||
|
|
||||||
libeek_gtk_la_SOURCES = $(libeek_gtk_sources)
|
libeek_gtk_la_SOURCES = $(libeek_gtk_sources)
|
||||||
libeek_gtk_la_CFLAGS = $(GTK_CFLAGS)
|
libeek_gtk_la_CFLAGS = -DEEK_COMPILATION=1 $(GTK_CFLAGS)
|
||||||
libeek_gtk_la_LIBADD = libeek.la $(GTK_LIBS)
|
libeek_gtk_la_LIBADD = libeek.la $(GTK_LIBS)
|
||||||
|
|
||||||
libeek_xkb_public_headers = \
|
libeek_xkb_public_headers = \
|
||||||
@ -141,7 +141,7 @@ libeek_xkb_sources = \
|
|||||||
$(srcdir)/eek-xkb-layout.c
|
$(srcdir)/eek-xkb-layout.c
|
||||||
|
|
||||||
libeek_xkb_la_SOURCES = $(libeek_xkb_sources)
|
libeek_xkb_la_SOURCES = $(libeek_xkb_sources)
|
||||||
libeek_xkb_la_CFLAGS = $(XKB_CFLAGS) $(GTK_CFLAGS)
|
libeek_xkb_la_CFLAGS = -DEEK_COMPILATION=1 $(XKB_CFLAGS) $(GTK_CFLAGS)
|
||||||
libeek_xkb_la_LIBADD = libeek.la $(XKB_LIBS) $(GTK_LIBS)
|
libeek_xkb_la_LIBADD = libeek.la $(XKB_LIBS) $(GTK_LIBS)
|
||||||
|
|
||||||
libeek_xkl_public_headers = \
|
libeek_xkl_public_headers = \
|
||||||
@ -152,7 +152,7 @@ libeek_xkl_sources = \
|
|||||||
$(srcdir)/eek-xkl-layout.c
|
$(srcdir)/eek-xkl-layout.c
|
||||||
|
|
||||||
libeek_xkl_la_SOURCES = $(libeek_xkl_sources)
|
libeek_xkl_la_SOURCES = $(libeek_xkl_sources)
|
||||||
libeek_xkl_la_CFLAGS = $(LIBXKLAVIER_CFLAGS) $(GTK_CFLAGS)
|
libeek_xkl_la_CFLAGS = -DEEK_COMPILATION=1 $(LIBXKLAVIER_CFLAGS) $(GTK_CFLAGS)
|
||||||
libeek_xkl_la_LIBADD = libeek-xkb.la $(LIBXKLAVIER_LIBS) $(GTK_LIBS)
|
libeek_xkl_la_LIBADD = libeek-xkb.la $(LIBXKLAVIER_LIBS) $(GTK_LIBS)
|
||||||
|
|
||||||
eekdir = $(includedir)/eek-$(EEK_API_VERSION)/eek
|
eekdir = $(includedir)/eek-$(EEK_API_VERSION)/eek
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek-clutter.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_CLUTTER_KEYBOARD_H
|
#ifndef EEK_CLUTTER_KEYBOARD_H
|
||||||
#define EEK_CLUTTER_KEYBOARD_H 1
|
#define EEK_CLUTTER_KEYBOARD_H 1
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_CONTAINER_H
|
#ifndef EEK_CONTAINER_H
|
||||||
#define EEK_CONTAINER_H 1
|
#define EEK_CONTAINER_H 1
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_ELEMENT_H
|
#ifndef EEK_ELEMENT_H
|
||||||
#define EEK_ELEMENT_H 1
|
#define EEK_ELEMENT_H 1
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,9 @@
|
|||||||
/*** BEGIN file-header ***/
|
/*** BEGIN file-header ***/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __EEK_ENUMTYPES_H__
|
#ifndef __EEK_ENUMTYPES_H__
|
||||||
#define __EEK_ENUMTYPES_H__
|
#define __EEK_ENUMTYPES_H__
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek-gtk.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_GTK_KEYBOARD_H
|
#ifndef EEK_GTK_KEYBOARD_H
|
||||||
#define EEK_GTK_KEYBOARD_H 1
|
#define EEK_GTK_KEYBOARD_H 1
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_KEY_H
|
#ifndef EEK_KEY_H
|
||||||
#define EEK_KEY_H 1
|
#define EEK_KEY_H 1
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_KEYBOARD_H
|
#ifndef EEK_KEYBOARD_H
|
||||||
#define EEK_KEYBOARD_H 1
|
#define EEK_KEYBOARD_H 1
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_KEYSYM_H
|
#ifndef EEK_KEYSYM_H
|
||||||
#define EEK_KEYSYM_H 1
|
#define EEK_KEYSYM_H 1
|
||||||
|
|
||||||
|
|||||||
@ -18,6 +18,10 @@
|
|||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_LAYOUT_H
|
#ifndef EEK_LAYOUT_H
|
||||||
#define EEK_LAYOUT_H 1
|
#define EEK_LAYOUT_H 1
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_SECTION_H
|
#ifndef EEK_SECTION_H
|
||||||
#define EEK_SECTION_H 1
|
#define EEK_SECTION_H 1
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,10 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_SERIALIZABLE_H
|
#ifndef EEK_SERIALIZABLE_H
|
||||||
#define EEK_SERIALIZABLE_H 1
|
#define EEK_SERIALIZABLE_H 1
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_SYMBOL_H
|
#ifndef EEK_SYMBOL_H
|
||||||
#define EEK_SYMBOL_H 1
|
#define EEK_SYMBOL_H 1
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,9 @@
|
|||||||
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __EEK_THEME_H__
|
#ifndef __EEK_THEME_H__
|
||||||
#define __EEK_THEME_H__
|
#define __EEK_THEME_H__
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_TYPES_H
|
#ifndef EEK_TYPES_H
|
||||||
#define EEK_TYPES_H 1
|
#define EEK_TYPES_H 1
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek-xkb.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_XKB_LAYOUT_H
|
#ifndef EEK_XKB_LAYOUT_H
|
||||||
#define EEK_XKB_LAYOUT_H 1
|
#define EEK_XKB_LAYOUT_H 1
|
||||||
|
|
||||||
|
|||||||
@ -17,6 +17,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||||
* 02110-1301 USA
|
* 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek-xkl.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_XKL_LAYOUT_H
|
#ifndef EEK_XKL_LAYOUT_H
|
||||||
#define EEK_XKL_LAYOUT_H 1
|
#define EEK_XKL_LAYOUT_H 1
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,10 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_XML_LAYOUT_H
|
#ifndef EEK_XML_LAYOUT_H
|
||||||
#define EEK_XML_LAYOUT_H 1
|
#define EEK_XML_LAYOUT_H 1
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,10 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if !defined(__EEK_H_INSIDE__) && !defined(EEK_COMPILATION)
|
||||||
|
#error "Only <eek/eek.h> can be included directly."
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EEK_XML_H
|
#ifndef EEK_XML_H
|
||||||
#define EEK_XML_H 1
|
#define EEK_XML_H 1
|
||||||
|
|
||||||
|
|||||||
@ -20,6 +20,8 @@
|
|||||||
#ifndef EEK_H
|
#ifndef EEK_H
|
||||||
#define EEK_H 1
|
#define EEK_H 1
|
||||||
|
|
||||||
|
#define __EEK_H_INSIDE__ 1
|
||||||
|
|
||||||
#include "eek-keyboard.h"
|
#include "eek-keyboard.h"
|
||||||
#include "eek-section.h"
|
#include "eek-section.h"
|
||||||
#include "eek-key.h"
|
#include "eek-key.h"
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
#include <gdk/gdkx.h>
|
#include <gdk/gdkx.h>
|
||||||
#include <glib/gi18n.h>
|
#include <glib/gi18n.h>
|
||||||
|
|
||||||
#include "eek/eek-xml.h"
|
#include "eek/eek.h"
|
||||||
#include "eek/eek-xkl.h"
|
#include "eek/eek-xkl.h"
|
||||||
|
|
||||||
#if HAVE_CLUTTER_GTK
|
#if HAVE_CLUTTER_GTK
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif /* HAVE_CONFIG_H */
|
#endif /* HAVE_CONFIG_H */
|
||||||
|
|
||||||
#include "eek/eek-xml.h"
|
#include "eek/eek.h"
|
||||||
#include "eek/eek-xkl.h"
|
#include "eek/eek-xkl.h"
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user