pixman-compiler.h revision 4fedcd2da6f840dbadee84e579f146ad0f1fde22
/* Pixman uses some non-standard compiler features. This file ensures
* they exist
*
* The features are:
*
* FUNC must be defined to expand to the current function
* PIXMAN_EXPORT should be defined to whatever is required to
* export functions from a shared library
* limits limits for various types must be defined
* inline must be defined
* force_inline must be defined
*/
#if defined (__GNUC__)
# define FUNC ((const char*) (__PRETTY_FUNCTION__))
#else
# define FUNC ((const char*) ("???"))
#endif
#ifndef INT16_MIN
#endif
#ifndef INT16_MAX
# define INT16_MAX (32767)
#endif
#ifndef INT32_MIN
#endif
#ifndef INT32_MAX
# define INT32_MAX (2147483647)
#endif
#ifndef UINT32_MIN
# define UINT32_MIN (0)
#endif
#ifndef UINT32_MAX
# define UINT32_MAX (4294967295U)
#endif
#ifndef M_PI
# define M_PI 3.14159265358979323846
#endif
#ifdef _MSC_VER
/* 'inline' is available only in C++ in MSVC */
# define inline __inline
# define force_inline __forceinline
# define inline __inline__
#else
# ifndef force_inline
# define force_inline inline
# endif
#endif
/* GCC visibility */
/* Sun Studio 8 visibility */
# define PIXMAN_EXPORT __global
#else
# define PIXMAN_EXPORT
#endif