The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Win32 inline mod snippet

NAME

matrixssl_win32_inline - win32 compiler support script

SYNOPSIS

        reads  < ./matrixssl/matrixSsl.h  writes > ./mxSsl.h

DESCRIPTION

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)

diff -C2 -b -B -w ./matrixssl/matrixSsl.h ./mxSsl.h

*** ./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 ----

BUGS

  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