X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6ed776fb2d330b4b6d0105c3628ccf88fd3bb60..0e0bc921908ab73cac0cd14f00ac448c83fdec35:/src/xpm/xpm.h diff --git a/src/xpm/xpm.h b/src/xpm/xpm.h index f53ff82ec3..333b09d122 100644 --- a/src/xpm/xpm.h +++ b/src/xpm/xpm.h @@ -101,6 +101,12 @@ typedef unsigned long Pixel; /* Index into colormap */ # endif #endif +/* DW: bug in makefile seems to not want to define these, but they are needed! */ +/* Guillermo, maybe you can look at it */ +#ifdef FOR_MSW +# define FUNC(f, t, p) extern t f p +# define LFUNC(f, t, p) static t f p +#endif /* Return ErrorStatus codes: * null if full success @@ -298,11 +304,8 @@ typedef struct { /* macros for forward declarations of functions with prototypes */ #if NeedFunctionPrototypes -#define FUNC(f, t, p) extern t f p -#define LFUNC(f, t, p) static t f p -#else -#define FUNC(f, t, p) extern t f() -#define LFUNC(f, t, p) static t f() +# define FUNC(f, t, p) extern t f p +# define LFUNC(f, t, p) static t f p #endif