Blame gst/gstmacros.h

Packit f546b1
/* GStreamer
Packit f546b1
 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu>
Packit f546b1
 *
Packit f546b1
 * This library is free software; you can redistribute it and/or
Packit f546b1
 * modify it under the terms of the GNU Library General Public
Packit f546b1
 * License as published by the Free Software Foundation; either
Packit f546b1
 * version 2 of the License, or (at your option) any later version.
Packit f546b1
 *
Packit f546b1
 * This library is distributed in the hope that it will be useful,
Packit f546b1
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit f546b1
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit f546b1
 * Library General Public License for more details.
Packit f546b1
 *
Packit f546b1
 * You should have received a copy of the GNU Library General Public
Packit f546b1
 * License along with this library; if not, write to the
Packit f546b1
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit f546b1
 * Boston, MA 02110-1301, USA.
Packit f546b1
 */
Packit f546b1
#ifndef __GST_MACROS_H__
Packit f546b1
#define __GST_MACROS_H__
Packit f546b1
Packit f546b1
#include <glib.h>
Packit f546b1
Packit f546b1
G_BEGIN_DECLS
Packit f546b1
Packit f546b1
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
Packit f546b1
# define GST_GNUC_CONSTRUCTOR \
Packit f546b1
  __attribute__ ((constructor))
Packit f546b1
#else  /* !__GNUC__ */
Packit f546b1
# define GST_GNUC_CONSTRUCTOR
Packit f546b1
#endif /* !__GNUC__ */
Packit f546b1
Packit f546b1
#if defined (__GNUC__) && !defined (GST_IMPLEMENT_INLINES)
Packit f546b1
# define GST_INLINE_FUNC extern __inline__
Packit f546b1
# define GST_CAN_INLINE 1
Packit f546b1
#elif defined(_MSC_VER)
Packit f546b1
# define GST_INLINE_FUNC extern __inline
Packit f546b1
# define GST_CAN_INLINE 1
Packit f546b1
#else
Packit f546b1
# define GST_INLINE_FUNC extern
Packit f546b1
# undef GST_CAN_INLINE
Packit f546b1
#endif
Packit f546b1
Packit f546b1
#if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined(restrict)
Packit f546b1
#  if defined(__GNUC__) && __GNUC__ >= 4
Packit f546b1
#    define restrict __restrict__
Packit f546b1
#  else
Packit f546b1
#    define restrict
Packit f546b1
#  endif
Packit f546b1
#endif
Packit f546b1
Packit f546b1
G_END_DECLS
Packit f546b1
Packit f546b1
#endif /* __GST_MACROS_H__ */
Packit f546b1
Packit f546b1