Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2010-01-19 05:15:37 +0300
committerMatt Ebb <matt@mke3.net>2010-01-19 05:15:37 +0300
commitb079dcc140f9c9141cf12ac15cc4e65c0fcee1e5 (patch)
treea6f9dee7b643da406fdec9fff547ee44ae097f61 /source
parentaab8196a1c16a1695a168c486fc6883953f97722 (diff)
Fix compile on msvc (inline)
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenkernel/BKE_colortools.h10
-rw-r--r--source/blender/blenkernel/intern/colortools.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_colortools.h b/source/blender/blenkernel/BKE_colortools.h
index 21d8ed209ee..11c5e51b2c1 100644
--- a/source/blender/blenkernel/BKE_colortools.h
+++ b/source/blender/blenkernel/BKE_colortools.h
@@ -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,
diff --git a/source/blender/blenkernel/intern/colortools.c b/source/blender/blenkernel/intern/colortools.c
index ceab3eb259a..e29d908411c 100644
--- a/source/blender/blenkernel/intern/colortools.c
+++ b/source/blender/blenkernel/intern/colortools.c
@@ -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);