forked from bartvdbraak/blender
Fix compile on msvc (inline)
This commit is contained in:
parent
aab8196a1c
commit
b079dcc140
@ -35,6 +35,16 @@ struct Histogram;
|
||||
struct ImBuf;
|
||||
struct rctf;
|
||||
|
||||
#if defined _WIN32
|
||||
# define DO_INLINE __inline
|
||||
#elif defined (__sgi)
|
||||
# define DO_INLINE
|
||||
#elif defined (__sun) || defined (__sun__)
|
||||
# define DO_INLINE
|
||||
#else
|
||||
# define DO_INLINE static inline
|
||||
#endif
|
||||
|
||||
typedef enum CurveMappingPreset {
|
||||
CURVE_PRESET_LINE,
|
||||
CURVE_PRESET_SHARP,
|
||||
|
@ -880,7 +880,7 @@ void curvemapping_table_RGBA(CurveMapping *cumap, float **array, int *size)
|
||||
|
||||
/* ***************** Histogram **************** */
|
||||
|
||||
static inline int get_bin_float(float f)
|
||||
DO_INLINE int get_bin_float(float f)
|
||||
{
|
||||
CLAMP(f, 0.0, 1.0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user