Subject: | Required changes for Win32 build |
In order to build Crypt::IDEA on Win32 platforms one needs to make the following changes:
* choose a different name for `idea.c`. Win32 file
systems are case-insensitive and `idea.c` would
be overridden by IDEA.c from IDEA.xs; `Makefile.pl`
must be changed to announce the new name; `Manifest`
likewise (but this is not a must to build it)
* u_int16_t and int32_t must be defined, this could be done like
#ifdef WIN32
typedef unsigned __int16 u_int16_t;
typedef __int32 int32_t;
#endif
* `endian.h` (referenced in `idea.c`) is not available on Win32; Win32 uses little-endian, thus
#ifdef WIN32
#define LITTLE_ENDIAN 1234
#define BYTE_ORDER LITTLE_ENDIAN
#else
#include <endian.h>
#endif
should help. Using Perl 5.6.0 one needs to use POLLUTE=1, sv_undef should be PL_sv_undef for later versions of Perl.