-typedef long (_stdcall * WndProcCast) (HWND, unsigned int, unsigned int, long);
-#define CASTWNDPROC (WndProcCast)
+# ifdef __BORLANDC__
+# define CASTWNDPROC
+# else
+# ifdef __WIN32__
+ typedef long (_stdcall * WndProcCast) (HWND, unsigned int, unsigned int, long);
+# define CASTWNDPROC (WndProcCast)
+# else
+# define CASTWNDPROC
+# endif
+# endif