[cogl/msvc-support] Revert workaround for modff
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/msvc-support] Revert workaround for modff
- Date: Tue, 19 Jul 2011 15:28:42 +0000 (UTC)
commit e621b22b363e4c6e2ed942d3ed17b7efb467e76d
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Jul 19 23:38:57 2011 +0800
Revert workaround for modff
cogl/cogl-texture-2d.c | 21 ---------------------
1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c
index d12cb43..71ff44a 100644
--- a/cogl/cogl-texture-2d.c
+++ b/cogl/cogl-texture-2d.c
@@ -48,27 +48,6 @@
#include <wayland-server.h>
#endif
-#ifdef COGL_HAS_WIN32_SUPPORT
-#ifdef _MSC_VER
-#ifdef _M_IX86
-/* Add a workaround for modff on Visual C++
- under 32-bit compilation as the default modff
- has a bug that will corrupt the second parameter
- passed into it at times, which is evident in
- _cogl_texture_2d_wrap_coords
- */
-#ifdef modff
-#undef modff
-#endif
-inline float modff(float x, float * y)
-{
- *y=((int)x);
- return (x-*y);
-}
-#endif /* ifdef _M_IX86 */
-#endif /* ifdef _MSC_VER */
-#endif /* ifdef COGL_HAS_WIN32_SUPPORT */
-
static void _cogl_texture_2d_free (CoglTexture2D *tex_2d);
COGL_TEXTURE_DEFINE (Texture2D, texture_2d);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]