mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 02:08:23 +02:00
gallium: Don't redefine INLINE.
INLINE is commonly used in third-party headers.
This commit is contained in:
parent
975e58499a
commit
b3b7c757a9
1 changed files with 16 additions and 14 deletions
|
|
@ -112,20 +112,22 @@ typedef unsigned char boolean;
|
|||
|
||||
|
||||
/* Function inlining */
|
||||
#ifdef __cplusplus
|
||||
# define INLINE inline
|
||||
#elif defined(__GNUC__)
|
||||
# define INLINE __inline__
|
||||
#elif defined(_MSC_VER)
|
||||
# define INLINE __inline
|
||||
#elif defined(__ICL)
|
||||
# define INLINE __inline
|
||||
#elif defined(__INTEL_COMPILER)
|
||||
# define INLINE inline
|
||||
#elif defined(__WATCOMC__) && (__WATCOMC__ >= 1100)
|
||||
# define INLINE __inline
|
||||
#else
|
||||
# define INLINE
|
||||
#ifndef INLINE
|
||||
# ifdef __cplusplus
|
||||
# define INLINE inline
|
||||
# elif defined(__GNUC__)
|
||||
# define INLINE __inline__
|
||||
# elif defined(_MSC_VER)
|
||||
# define INLINE __inline
|
||||
# elif defined(__ICL)
|
||||
# define INLINE __inline
|
||||
# elif defined(__INTEL_COMPILER)
|
||||
# define INLINE inline
|
||||
# elif defined(__WATCOMC__) && (__WATCOMC__ >= 1100)
|
||||
# define INLINE __inline
|
||||
# else
|
||||
# define INLINE
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue