Avoid the stack to be screwed up in the callbacks on Windows.
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 21 Jan 2009 07:44:20 +0000 (07:44 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 21 Jan 2009 07:44:20 +0000 (07:44 +0000)
Fix the seg fault in the polygon test in expedite on Windows.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@38679 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/gl_common/evas_gl_polygon.c

index f65ef10..7e8db48 100644 (file)
@@ -1,5 +1,9 @@
 #include "evas_gl_private.h"
 
+#ifdef _WIN32
+# define EFL_STDCALL __stdcall
+#endif
+
 #define GLU_TESS
 
 Evas_GL_Polygon *
@@ -36,11 +40,11 @@ evas_gl_common_poly_points_clear(Evas_GL_Polygon *poly)
 }
 
 #ifdef GLU_TESS
-static void _evas_gl_tess_begin_cb(GLenum which);
-static void _evas_gl_tess_end_cb(void);
-static void _evas_gl_tess_error_cb(GLenum errorcode);
-static void _evas_gl_tess_vertex_cb(GLvoid *vertex);
-static void _evas_gl_tess_combine_cb(GLdouble coords[3], GLdouble *vertex_data[4], GLfloat weight[4], GLdouble **data_out);
+static void EFL_STDCALL _evas_gl_tess_begin_cb(GLenum which);
+static void EFL_STDCALL _evas_gl_tess_end_cb(void);
+static void EFL_STDCALL _evas_gl_tess_error_cb(GLenum errorcode);
+static void EFL_STDCALL _evas_gl_tess_vertex_cb(GLvoid *vertex);
+static void EFL_STDCALL _evas_gl_tess_combine_cb(GLdouble coords[3], GLdouble *vertex_data[4], GLfloat weight[4], GLdouble **data_out);
 
 static void
 _evas_gl_tess_begin_cb(GLenum which)