gd_filter.c(71) : error C2440 (MSVC 9 SP1)

Issue #10 resolved
Former user created an issue

gd_filter.c(71) : error C2440: '=' : cannot convert from 'int (stdcall *)(gdImagePtr,int,int)' to 'int (cdecl *)(gdImagePtr,int,int)'

Unless I'm missing something, this is a serious bug for the DLL build.

I think line 11 should be like: {{{ #ifdef NONDLL #define BGD_CALLTYPE #else #ifdef WIN32 #define BGD_CALLTYPE __stdcall #else #define BGD_CALLTYPE _stdcall #endif / WIN32 / #endif / NONDLL /

#define PIXEL_FUNCTION_DECLARE(f) int (BGD_CALLTYPE *f)(gdImagePtr, int, int) }}}

Comments (2)

  1. Log in to comment