diff options
author | Brad King <brad.king@kitware.com> | 2003-06-30 14:30:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-06-30 14:30:38 (GMT) |
commit | ef76ed76f8a31f706ee675160e5c57c34b608516 (patch) | |
tree | b0bad156b6f2fb3b4bfdb57a13a55a0b2d45f0bb /Source/kwsys/Base64.h.in | |
parent | ac2de4f5defce85b7980d70656668d8aebc62079 (diff) | |
download | CMake-ef76ed76f8a31f706ee675160e5c57c34b608516.zip CMake-ef76ed76f8a31f706ee675160e5c57c34b608516.tar.gz CMake-ef76ed76f8a31f706ee675160e5c57c34b608516.tar.bz2 |
ENH: Added DLL support.
Diffstat (limited to 'Source/kwsys/Base64.h.in')
-rw-r--r-- | Source/kwsys/Base64.h.in | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/Source/kwsys/Base64.h.in b/Source/kwsys/Base64.h.in index d9202d5..e250371 100644 --- a/Source/kwsys/Base64.h.in +++ b/Source/kwsys/Base64.h.in @@ -17,11 +17,14 @@ #ifndef @KWSYS_NAMESPACE@_Base64_h #define @KWSYS_NAMESPACE@_Base64_h +#include <@KWSYS_NAMESPACE@/Configure.h> + /* Redefine all public interface symbol names to be in the proper namespace. These macros are used internally to kwsys only, and are not visible to user code. Use kwsysHeaderDump.pl to reproduce these macros after making changes to the interface. */ #define kwsys(x) @KWSYS_NAMESPACE@##x +#define kwsysEXPORT kwsys(_EXPORT) #define kwsysBase64 kwsys(Base64) #define kwsysBase64_Decode kwsys(Base64_Decode) #define kwsysBase64_Decode3 kwsys(Base64_Decode3) @@ -38,17 +41,20 @@ extern "C" /** * Encode 3 bytes into a 4 byte string. */ -void kwsysBase64_Encode3(const unsigned char *src, unsigned char *dest); +kwsysEXPORT void kwsysBase64_Encode3(const unsigned char *src, + unsigned char *dest); /** * Encode 2 bytes into a 4 byte string. */ -void kwsysBase64_Encode2(const unsigned char *src, unsigned char *dest); +kwsysEXPORT void kwsysBase64_Encode2(const unsigned char *src, + unsigned char *dest); /** * Encode 1 bytes into a 4 byte string. */ -void kwsysBase64_Encode1(const unsigned char *src, unsigned char *dest); +kwsysEXPORT void kwsysBase64_Encode1(const unsigned char *src, + unsigned char *dest); /** * Encode 'length' bytes from the input buffer and store the encoded @@ -63,16 +69,17 @@ void kwsysBase64_Encode1(const unsigned char *src, unsigned char *dest); * the extra padding needed to complete the encode 4 bytes will stop * the decoding anyway). */ -unsigned long kwsysBase64_Encode(const unsigned char *input, - unsigned long length, - unsigned char *output, - int mark_end); +kwsysEXPORT unsigned long kwsysBase64_Encode(const unsigned char *input, + unsigned long length, + unsigned char *output, + int mark_end); /** * Decode 4 bytes into a 3 byte string. Returns the number of bytes * actually decoded. */ -int kwsysBase64_Decode3(const unsigned char *src, unsigned char *dest); +kwsysEXPORT int kwsysBase64_Decode3(const unsigned char *src, + unsigned char *dest); /** * Decode bytes from the input buffer and store the decoded stream @@ -86,10 +93,10 @@ int kwsysBase64_Decode3(const unsigned char *src, unsigned char *dest); * much decoded data to expect (of course, the buffer must be large * enough). */ -unsigned long kwsysBase64_Decode(const unsigned char *input, - unsigned long length, - unsigned char *output, - unsigned long max_input_length); +kwsysEXPORT unsigned long kwsysBase64_Decode(const unsigned char *input, + unsigned long length, + unsigned char *output, + unsigned long max_input_length); #if defined(__cplusplus) } /* extern "C" */ @@ -99,6 +106,7 @@ unsigned long kwsysBase64_Decode(const unsigned char *input, undefine them to keep the namespace clean. */ #if !defined(KWSYS_IN_BASE64_C) # undef kwsys +# undef kwsysEXPORT # undef kwsysBase64 # undef kwsysBase64_Decode # undef kwsysBase64_Decode3 |