2002-11-29 19:08:47 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Library General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 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
|
|
|
|
* Library General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this library; if not, write to the
|
2012-11-03 20:44:48 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2002-11-29 19:08:47 +00:00
|
|
|
*/
|
|
|
|
#ifndef __GST_MACROS_H__
|
|
|
|
#define __GST_MACROS_H__
|
|
|
|
|
2015-08-10 22:35:21 +00:00
|
|
|
#include <glib.h>
|
|
|
|
|
2003-07-18 20:51:02 +00:00
|
|
|
G_BEGIN_DECLS
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2002-12-31 03:21:08 +00:00
|
|
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
|
|
|
# define GST_GNUC_CONSTRUCTOR \
|
2005-09-20 10:41:03 +00:00
|
|
|
__attribute__ ((constructor))
|
2004-03-15 14:43:35 +00:00
|
|
|
#else /* !__GNUC__ */
|
2002-12-31 03:21:08 +00:00
|
|
|
# define GST_GNUC_CONSTRUCTOR
|
2002-11-29 19:08:47 +00:00
|
|
|
#endif /* !__GNUC__ */
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2002-12-31 03:21:08 +00:00
|
|
|
#if defined (__GNUC__) && !defined (GST_IMPLEMENT_INLINES)
|
|
|
|
# define GST_INLINE_FUNC extern __inline__
|
|
|
|
# define GST_CAN_INLINE 1
|
2004-04-28 23:26:06 +00:00
|
|
|
#elif defined(_MSC_VER)
|
|
|
|
# define GST_INLINE_FUNC extern __inline
|
|
|
|
# define GST_CAN_INLINE 1
|
2002-12-31 03:21:08 +00:00
|
|
|
#else
|
2005-10-15 15:30:24 +00:00
|
|
|
# define GST_INLINE_FUNC extern
|
2002-12-31 03:21:08 +00:00
|
|
|
# undef GST_CAN_INLINE
|
|
|
|
#endif
|
2004-03-15 14:43:35 +00:00
|
|
|
|
2010-10-19 13:52:30 +00:00
|
|
|
#if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(restrict)
|
|
|
|
# if defined(__GNUC__) && __GNUC__ >= 4
|
|
|
|
# define restrict __restrict__
|
|
|
|
# else
|
|
|
|
# define restrict
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2004-03-15 14:43:35 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
2002-11-29 19:08:47 +00:00
|
|
|
#endif /* __GST_MACROS_H__ */
|
2004-03-15 14:43:35 +00:00
|
|
|
|
|
|
|
|