From 4cdf2b787c92977a7883c2f4eae8c5e5f97dfd54 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 11 Apr 2008 20:05:25 +0000 Subject: Add epiphany.h. Only allow including epiphany/epiphany.h; all other Add epiphany.h. Only allow including epiphany/epiphany.h; all other headers are internal. svn path=/trunk/; revision=8210 --- src/epiphany.h.in | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 src/epiphany.h.in (limited to 'src/epiphany.h.in') diff --git a/src/epiphany.h.in b/src/epiphany.h.in new file mode 100644 index 000000000..aa4a6781c --- /dev/null +++ b/src/epiphany.h.in @@ -0,0 +1,75 @@ +/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */ +/* Copyright © 2008 Xan Lopez + * + * 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; either version 2, or (at your option) + * any later version. + * + * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef __EPIPHANY_H__ +#define __EPIPHANY_H__ + +#define __EPHY_EPIPHANY_H_INSIDE__ + +/* From GTK_CHECK_VERSION */ +#define EPHY_MAJOR_VERSION (@EPIPHANY_MAJOR_VERSION@) +#define EPHY_MINOR_VERSION (@EPIPHANY_MINOR_VERSION@) +#define EPHY_MICRO_VERSION (@EPIPHANY_MICRO_VERSION@) + +#define EPHY_CHECK_VERSION(major, minor, micro)\ + (EPHY_MAJOR_VERSION > (major) || \ + (EPHY_MAJOR_VERSION == (major) && EPHY_MINOR_VERSION > (minor)) || \ + (EPHY_MAJOR_VERSION == (major) && EPHY_MINOR_VERSION == (minor) && \ + EPHY_MICRO_VERSION >= (micro))) + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#undef __EPHY_EPIPHANY_H_INSIDE__ + +#endif /* !__EPIPHANY_H__ */ -- cgit v1.2.3