Commits

Ondřej Surý committed cdea9eb

Remove extra # define BGD_DECLARE and simplify __stdcall non-usage on Linux

  • Participants
  • Parent commits 2e4381a

Comments (0)

Files changed (2)

File src/gd_filter.c

 #include <time.h>
 
 #ifdef NONDLL
-typedef int (*FuncPtr)(gdImagePtr, int, int);
-#else
-#  ifdef BGDWIN32
-//typedef int (__stdcall *FuncPtr)(gdImagePtr, int, int);
-typedef int (__stdcall *FuncPtr)(gdImagePtr, int, int);
-/* 
-#define BGD_DECLARE(rt) __declspec(dllexport) rt __stdcall
-*/
-#  else
+#define __stdcall
+#endif
+
 typedef int (__stdcall *FuncPtr)(gdImagePtr, int, int);
-/* #define BGD_DECLARE(rt) __declspec(dllimport) rt _stdcall */
-#  endif /* BGDWIN32 */
-#endif /* NONDLL */
 
 #define GET_PIXEL_FUNCTION(src)(src->trueColor?gdImageGetTrueColorPixel:gdImageGetPixel)
 #define MIN(a,b) ((a)<(b)?(a):(b))

File src/gd_rotate.c

 #endif /* ROTATE_PI */
 
 #ifdef NONDLL
-# define BGD_DECLARE(rt) extern rt
-typedef int (*FuncPtr)(gdImagePtr, int, int);
-#else
-# ifdef BGDWIN32
-typedef int (__stdcall *FuncPtr)(gdImagePtr, int, int);
-# else
+#define __stdcall
+#endif
+
 typedef int (__stdcall *FuncPtr)(gdImagePtr, int, int);
-#endif/* BGDWIN32 */
-#endif /* NONDLL */
 
 #define ROTATE_DEG2RAD  3.1415926535897932384626433832795/180
 void gdImageSkewX (gdImagePtr dst, gdImagePtr src, int uRow, int iOffset, double dWeight, int clrBack, int ignoretransparent)