[tracker/extractor-dev: 9/17] libtracker-common: Added check for inclusion outside Tracker again



commit 1a4faae447937d973073214f5e44e15d79caf86d
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Mar 9 13:07:29 2010 +0000

    libtracker-common: Added check for inclusion outside Tracker again

 src/libtracker-common/tracker-common.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-common/tracker-common.h b/src/libtracker-common/tracker-common.h
index 9992bf3..2892b55 100644
--- a/src/libtracker-common/tracker-common.h
+++ b/src/libtracker-common/tracker-common.h
@@ -20,6 +20,10 @@
 #ifndef __LIBTRACKER_COMMON_H__
 #define __LIBTRACKER_COMMON_H__
 
+#if !defined (__LIBTRACKER_COMMON_INSIDE__) && !defined (TRACKER_COMPILATION)
+#error "only <libtracker-common/tracker-common.h> must be included directly."
+#endif
+
 #include <glib.h>
 
 #define __LIBTRACKER_COMMON_INSIDE__



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]