Commits

Ondřej Surý committed cdea9eb

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

Comments (0)

Files changed (2)

 #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))
 #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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.