Win32 inline mod snippet
matrixssl_win32_inline - win32 compiler support script
reads < ./matrixssl/matrixSsl.h writes > ./mxSsl.h
Converts the MatrixSSL header file so that Win32 compilations work "inline" (that is: so they don't need a "perl" loading DLL and a MatrixSSL functions DLL - everything is instead put all inside the one DLL)
*** ./matrixssl/matrixSsl.h 2004-09-21 00:33:22.000000000 +0000 --- ./mxSsl.h 2005-01-17 14:10:14.000000000 +0000 *************** *** 35,41 **** #define _h_MATRIXSSL
- #ifdef __cplusplus - extern "C" { - #endif
/******************************************************************************/ --- 35,38 ---- *************** *** 145,153 **** */ #ifdef WIN32 ! #define SSLPUBLIC extern __declspec(dllimport) #endif /* WIN */ #else /* _h_MATRIXINTERNAL */ #ifdef WIN32 ! #define SSLPUBLIC extern __declspec(dllexport) #endif /* WIN */ #endif /* _h_MATRIXINTERNAL */ --- 142,152 ---- */ #ifdef WIN32 ! #define SSLPUBLIC extern ! /* __declspec(dllimport) */ #endif /* WIN */ #else /* _h_MATRIXINTERNAL */ #ifdef WIN32 ! #define SSLPUBLIC extern ! /*__declspec(dllexport) */ #endif /* WIN */ #endif /* _h_MATRIXINTERNAL */ *************** *** 202,208 **** /******************************************************************************/
- #ifdef __cplusplus - } - #endif
#endif /* _h_MATRIXSSL */ --- 201,204 ----
searches for hardcoded stuff instead of "parsing the header file"; should be OK, but might one day fail if peersec make dramatic changes to their header files.
End of Win32 inline mod snippet
To install Crypt::MatrixSSL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Crypt::MatrixSSL
CPAN shell
perl -MCPAN -e shell install Crypt::MatrixSSL
For more information on module installation, please visit the detailed CPAN module installation guide.