gstmacros.h | gstmacros.h | |||
---|---|---|---|---|
skipping to change at line 19 | skipping to change at line 19 | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Library General Public License for more details. | * Library General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Library General Public | * You should have received a copy of the GNU Library General Public | |||
* License along with this library; if not, write to the | * License along with this library; if not, write to the | |||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |||
* Boston, MA 02111-1307, USA. | * Boston, MA 02111-1307, USA. | |||
*/ | */ | |||
/** | ||||
* SECTION:gstmacros | ||||
* @short_description: Various portabillity helper macros | ||||
* | ||||
* A set of macros complementing the glib portability macros. | ||||
*/ | ||||
#ifndef __GST_MACROS_H__ | #ifndef __GST_MACROS_H__ | |||
#define __GST_MACROS_H__ | #define __GST_MACROS_H__ | |||
G_BEGIN_DECLS | G_BEGIN_DECLS | |||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) | #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) | |||
# define GST_GNUC_CONSTRUCTOR \ | # define GST_GNUC_CONSTRUCTOR \ | |||
__attribute__ ((constructor)) | __attribute__ ((constructor)) | |||
#else /* !__GNUC__ */ | #else /* !__GNUC__ */ | |||
# define GST_GNUC_CONSTRUCTOR | # define GST_GNUC_CONSTRUCTOR | |||
skipping to change at line 49 | skipping to change at line 42 | |||
# define GST_INLINE_FUNC extern __inline__ | # define GST_INLINE_FUNC extern __inline__ | |||
# define GST_CAN_INLINE 1 | # define GST_CAN_INLINE 1 | |||
#elif defined(_MSC_VER) | #elif defined(_MSC_VER) | |||
# define GST_INLINE_FUNC extern __inline | # define GST_INLINE_FUNC extern __inline | |||
# define GST_CAN_INLINE 1 | # define GST_CAN_INLINE 1 | |||
#else | #else | |||
# define GST_INLINE_FUNC extern | # define GST_INLINE_FUNC extern | |||
# undef GST_CAN_INLINE | # undef GST_CAN_INLINE | |||
#endif | #endif | |||
#if (!defined(__STDC_VERSION__) || __STDC_VERSION__ < 199901L) && !defined( | ||||
restrict) | ||||
# if defined(__GNUC__) && __GNUC__ >= 4 | ||||
# define restrict __restrict__ | ||||
# else | ||||
# define restrict | ||||
# endif | ||||
#endif | ||||
G_END_DECLS | G_END_DECLS | |||
#endif /* __GST_MACROS_H__ */ | #endif /* __GST_MACROS_H__ */ | |||
End of changes. 2 change blocks. | ||||
7 lines changed or deleted | 9 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |