diff include/SDL_stdinc.h @ 3032:77c3e67f0740

Fixed Visual C++ build
author Sam Lantinga <slouken@libsdl.org>
date Mon, 12 Jan 2009 08:46:28 +0000
parents 7e30c2dc7783
children bcd41b269091
line wrap: on
line diff
--- a/include/SDL_stdinc.h	Mon Jan 12 08:28:17 2009 +0000
+++ b/include/SDL_stdinc.h	Mon Jan 12 08:46:28 2009 +0000
@@ -646,6 +646,12 @@
 #define M_PI    3.14159265358979323846264338327950288   /* pi */
 #endif
 
+#ifdef HAVE_CEIL
+#define SDL_ceil        ceil
+#else
+#define SDL_ceil(x)     ((double)(int)((x)+0.5))
+#endif
+
 #ifdef HAVE_COPYSIGN
 #define SDL_copysign    copysign
 #else