Blame gst/gstmacros.h

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