From ba73d141c8e5980c4b3d13004e3002b4577d40f8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 18 Apr 2003 02:16:17 +0000 Subject: Cast to allow recent gcc and Borland compilers to build. --- win32/PlatWin.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index c61a67ca9..c92b274cb 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1304,7 +1304,8 @@ public: // Use GetProcAddress to get a pointer to the relevant function. virtual Function *FindFunction(const char *name) { if (h != NULL) { - return reinterpret_cast( ::GetProcAddress(h, name) ); + return static_cast( + (void *)(::GetProcAddress(h, name))); } else return NULL; } -- cgit v1.2.3