From: caro Date: Wed, 21 Jan 2009 07:44:20 +0000 (+0000) Subject: Avoid the stack to be screwed up in the callbacks on Windows. X-Git-Tag: accepted/2.0/20130306.225542~242^2~2627 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1768afb151f66eef2d4955bf7c3f5a37a7e7149b;p=profile%2Fivi%2Fevas.git Avoid the stack to be screwed up in the callbacks on Windows. 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 --- diff --git a/src/modules/engines/gl_common/evas_gl_polygon.c b/src/modules/engines/gl_common/evas_gl_polygon.c index f65ef10..7e8db48 100644 --- a/src/modules/engines/gl_common/evas_gl_polygon.c +++ b/src/modules/engines/gl_common/evas_gl_polygon.c @@ -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)