1/* $Id$ */ 2/*- 3 * Copyright (c) 2003-2007 Benedikt Meurer <benny@xfce.org> 4 * All rights reserved. 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Library General Public 8 * License as published by the Free Software Foundation; either 9 * version 2 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Library General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free 18 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * Boston, MA 02110-1301 USA 20 */ 21 22#if !defined(LIBXFCE4UTIL_INSIDE_LIBXFCE4UTIL_H) && !defined(LIBXFCE4UTIL_COMPILATION) 23#error "Only <libxfce4util/libxfce4util.h> can be included directly, this file may disappear or change contents" 24#endif 25 26#ifndef __LIBXFCE4UTIL_CONFIG_H__ 27#define __LIBXFCE4UTIL_CONFIG_H__ 28 29#include <glib.h> 30 31G_BEGIN_DECLS 32 33#define LIBXFCE4UTIL_MAJOR_VERSION @LIBXFCE4UTIL_VERSION_MAJOR@ 34#define LIBXFCE4UTIL_MINOR_VERSION @LIBXFCE4UTIL_VERSION_MINOR@ 35#define LIBXFCE4UTIL_MICRO_VERSION @LIBXFCE4UTIL_VERSION_MICRO@ 36 37#define LIBXFCE4UTIL_CHECK_VERSION(major,minor,micro) \ 38 (LIBXFCE4UTIL_MAJOR_VERSION > (major) \ 39 || (LIBXFCE4UTIL_MAJOR_VERSION == (major) \ 40 && LIBXFCE4UTIL_MINOR_VERSION > (minor)) \ 41 || (LIBXFCE4UTIL_MAJOR_VERSION == (major) \ 42 && LIBXFCE4UTIL_MINOR_VERSION == (minor) \ 43 && LIBXFCE4UTIL_MICRO_VERSION >= (micro))) 44 45extern const guint libxfce4util_major_version; 46extern const guint libxfce4util_minor_version; 47extern const guint libxfce4util_micro_version; 48 49/* verify that G_GNUC_WARN_UNUSED_RESULT is defined */ 50#if !defined(G_GNUC_WARN_UNUSED_RESULT) 51#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) 52#define G_GNUC_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) 53#else 54#define G_GNUC_WARN_UNUSED_RESULT 55#endif /* __GNUC__ */ 56#endif /* !defined(G_GNUC_WARN_UNUSED_RESULT) */ 57 58G_END_DECLS 59 60#endif /* !__LIBXFCE4UTIL_CONFIG_H__ */ 61