1. libgd
  2. Untitled project
  3. gd-libgd
  4. Issues

Issues

Issue #10 resolved

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

Anonymous 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