Commits

Pierre Joye committed 87eb546

we need to define inline

Comments (0)

Files changed (1)

src/gd_interpolation.c

 }
 #endif
 
+#if defined(_MSC_VER) && !defined(inline)
+# define inline __inline
+#endif 
+
 /* Copied from upstream's libgd */
 static inline int _color_blend (const int dst, const int src)
 {
 	   case later. Keep the two decimal precisions so smaller rotation steps can be done, useful for
 	   slow animations, f.e. */
 	const int angle_rounded = fmod((int) floorf(angle * 100), 360 * 100);
-	
+
 	if (bgcolor < 0) {
 		return NULL;
 	}