2012-01-30 17:25:03 +00:00
|
|
|
/*
|
|
|
|
* glibcompat.h - System-dependent definitions
|
|
|
|
*
|
2014-01-22 17:54:14 +00:00
|
|
|
* Copyright (C) 2012-2014 Intel Corporation
|
2013-11-22 04:57:18 +00:00
|
|
|
* Author: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
|
2012-01-30 17:25:03 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2.1
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free
|
|
|
|
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GLIB_COMPAT_H
|
|
|
|
#define GLIB_COMPAT_H
|
|
|
|
|
|
|
|
#include <glib.h>
|
2012-06-30 20:34:15 +00:00
|
|
|
#include <glib-object.h>
|
2012-01-30 17:25:03 +00:00
|
|
|
|
2012-12-17 08:41:24 +00:00
|
|
|
#define G_COMPAT_DEFINE(new_api, new_args, old_api, old_args) \
|
|
|
|
static inline void \
|
|
|
|
new_api new_args \
|
|
|
|
{ \
|
|
|
|
old_api old_args; \
|
|
|
|
}
|
|
|
|
|
|
|
|
#undef G_COMPAT_DEFINE
|
|
|
|
|
2012-01-30 17:25:03 +00:00
|
|
|
#endif /* GLIB_COMPAT_H */
|