Blame gcr/gcr-version.h

Packit b00eeb
/*
Packit b00eeb
 * gnome-keyring
Packit b00eeb
 *
Packit b00eeb
 * Copyright (C) 2013 Stef Walter
Packit b00eeb
 *
Packit b00eeb
 * This program is free software; you can redistribute it and/or modify
Packit b00eeb
 * it under the terms of the GNU Lesser General Public License as
Packit b00eeb
 * published by the Free Software Foundation; either version 2.1 of
Packit b00eeb
 * the License, or (at your option) any later version.
Packit b00eeb
 *
Packit b00eeb
 * This program is distributed in the hope that it will be useful, but
Packit b00eeb
 * WITHOUT ANY WARRANTY; without even the implied warranty of
Packit b00eeb
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit b00eeb
 * Lesser General Public License for more details.
Packit b00eeb
 *
Packit b00eeb
 * You should have received a copy of the GNU Lesser General Public
Packit b00eeb
 * License along with this program; if not, see <http://www.gnu.org/licenses/>.
Packit b00eeb
 *
Packit b00eeb
 * Author: Stef Walter <stefw@gnome.org>
Packit b00eeb
 */
Packit b00eeb
Packit b00eeb
#ifndef __GCR_VERSION_H__
Packit b00eeb
#define __GCR_VERSION_H__
Packit b00eeb
Packit b00eeb
#if !defined (__GCR_INSIDE_HEADER__) && !defined (GCR_COMPILATION)
Packit b00eeb
#error "Only <gcr/gcr.h> or <gcr/gcr-base.h> can be included directly."
Packit b00eeb
#endif
Packit b00eeb
Packit b00eeb
/* compile time version
Packit b00eeb
 */
Packit b00eeb
#define GCR_MAJOR_VERSION (3)
Packit b00eeb
#define GCR_MINOR_VERSION (28)
Packit b00eeb
#define GCR_MICRO_VERSION (0)
Packit b00eeb
Packit b00eeb
/* check whether a Gcr version equal to or greater than
Packit b00eeb
 * major.minor.micro.
Packit b00eeb
 */
Packit b00eeb
#define GCR_CHECK_VERSION(major,minor,micro)    \
Packit b00eeb
	(GCR_MAJOR_VERSION > (major) || \
Packit b00eeb
	 (GCR_MAJOR_VERSION == (major) && GCR_MINOR_VERSION > (minor)) || \
Packit b00eeb
	 (GCR_MAJOR_VERSION == (major) && GCR_MINOR_VERSION == (minor) && \
Packit b00eeb
	  GCR_MICRO_VERSION >= (micro)))
Packit b00eeb
Packit b00eeb
#endif /* __GCR_VERSION_H__ */