Add guard to prevent eekboard/eekboard-*.h from being included directly.
This commit is contained in:
		@ -27,7 +27,7 @@ libeekboard_sources =				\
 | 
				
			|||||||
	eekboard-context.c
 | 
						eekboard-context.c
 | 
				
			||||||
 | 
					
 | 
				
			||||||
libeekboard_la_SOURCES = $(libeekboard_sources)
 | 
					libeekboard_la_SOURCES = $(libeekboard_sources)
 | 
				
			||||||
libeekboard_la_CFLAGS = -I$(top_srcdir) $(GIO2_CFLAGS)
 | 
					libeekboard_la_CFLAGS = -DEEKBOARD_COMPILATION=1 -I$(top_srcdir) $(GIO2_CFLAGS)
 | 
				
			||||||
libeekboard_la_LIBADD = $(top_builddir)/eek/libeek.la $(GIO2_LIBS)
 | 
					libeekboard_la_LIBADD = $(top_builddir)/eek/libeek.la $(GIO2_LIBS)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
eekboarddir = $(includedir)/eekboard-$(EEK_API_VERSION)/eekboard
 | 
					eekboarddir = $(includedir)/eekboard-$(EEK_API_VERSION)/eekboard
 | 
				
			||||||
 | 
				
			|||||||
@ -15,6 +15,11 @@
 | 
				
			|||||||
 * You should have received a copy of the GNU General Public License
 | 
					 * You should have received a copy of the GNU General Public License
 | 
				
			||||||
 * 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(__EEKBOARD_H_INSIDE__) && !defined(EEKBOARD_COMPILATION)
 | 
				
			||||||
 | 
					#error "Only <eekboard/eekboard.h> can be included directly."
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef EEKBOARD_CONTEXT_H
 | 
					#ifndef EEKBOARD_CONTEXT_H
 | 
				
			||||||
#define EEKBOARD_CONTEXT_H 1
 | 
					#define EEKBOARD_CONTEXT_H 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -15,6 +15,11 @@
 | 
				
			|||||||
 * You should have received a copy of the GNU General Public License
 | 
					 * You should have received a copy of the GNU General Public License
 | 
				
			||||||
 * 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(__EEKBOARD_H_INSIDE__) && !defined(EEKBOARD_COMPILATION)
 | 
				
			||||||
 | 
					#error "Only <eekboard/eekboard.h> can be included directly."
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef EEKBOARD_EEKBOARD_H
 | 
					#ifndef EEKBOARD_EEKBOARD_H
 | 
				
			||||||
#define EEKBOARD_EEKBOARD_H 1
 | 
					#define EEKBOARD_EEKBOARD_H 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -18,6 +18,8 @@
 | 
				
			|||||||
#ifndef EEKBOARD_H
 | 
					#ifndef EEKBOARD_H
 | 
				
			||||||
#define EEKBOARD_H 1
 | 
					#define EEKBOARD_H 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#define __EEKBOARD_H_INSIDE__ 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "eekboard/eekboard-eekboard.h"
 | 
					#include "eekboard/eekboard-eekboard.h"
 | 
				
			||||||
#include "eekboard/eekboard-context.h"
 | 
					#include "eekboard/eekboard-context.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user