xslate / p5-Mouse

Lightweight class builder for Perl, as a subset of Moose
https://metacpan.org/release/Mouse
Other
46 stars 32 forks source link

Mouse does not build on windows #65

Closed MayankAdvani closed 7 years ago

MayankAdvani commented 7 years ago

...withVS2013 on win64 and VS2014 on win32.

It gives the following errors b:\3p\derived\win64\perl-cpan\mouse\mouse.h(110) : error C2054: expected '(' to follow 'inline' b:\3p\derived\win64\perl-cpan\mouse\mouse.h(111) : error C2085: 'MOUSE_get_magic' : not in formal parameter list b:\3p\derived\win64\perl-cpan\mouse\mouse.h(111) : error C2143: syntax error : missing ';' before '{'

To workaround the issue, edit the mouse.h file previous : static inline MAGIC MOUSE_getmagic(pTHX CV cv, MGVTBL vtbl) updated: static __inline MAGIC MOUSE_getmagic(pTHX CV cv, MGVTBL vtbl)

syohex commented 7 years ago

This is Visual Studio C/C++ compiler issue. It's C99 support is poor.

I have sent PR for improving portability at #66. Could you check it ?

syohex commented 7 years ago

66 is merged.