From: Paul M. <pmc...@co...> - 2007-04-28 01:25:56
|
I have in one of my headers that is included into the wrapper a function prototype in a class definition such as: static void Sleep(UINT32 milliseconds); It causes this output in Visual Studio: RubyClient_wrap.cxx c:\longrange\ssystem\sthread.hpp(44) : error C2062: type 'void' unexpected c:\longrange\ssystem\sthread.hpp(44) : error C2238: unexpected token(s) preceding ';' In win32.h, there is the following macro defined: #define Sleep(msec) (void)rb_w32_sleep(msec) Clearly this is the source of my grief. Any suggestions on how this could be worked around? Paul |