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
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GST_MACROS_H__
|
|
|
|
#define __GST_MACROS_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 \
|
2004-03-15 14:43:35 +00:00
|
|
|
__attribute__ ((constructor))
|
|
|
|
#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
|
2004-03-15 14:43:35 +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
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2002-11-29 19:08:47 +00:00
|
|
|
#endif /* __GST_MACROS_H__ */
|
2004-03-15 14:43:35 +00:00
|
|
|
|
|
|
|
|