summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Base64.h.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-23 13:47:34 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-23 13:47:34 (GMT)
commit1819d4ad1fb0016c20a46a0b66274b53d2b0f010 (patch)
tree1fcd3fd8928e51c0b41e71e0447f54141c7818ce /Source/kwsys/Base64.h.in
parent66977652309f4d754bc1b4603475569db40e4f77 (diff)
parent6ed23ff4e9bbf848a77865e6d08c1e8e6074de92 (diff)
downloadCMake-1819d4ad1fb0016c20a46a0b66274b53d2b0f010.zip
CMake-1819d4ad1fb0016c20a46a0b66274b53d2b0f010.tar.gz
CMake-1819d4ad1fb0016c20a46a0b66274b53d2b0f010.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/Base64.h.in')
-rw-r--r--Source/kwsys/Base64.h.in18
1 files changed, 10 insertions, 8 deletions
diff --git a/Source/kwsys/Base64.h.in b/Source/kwsys/Base64.h.in
index 3468007..36ed3cc 100644
--- a/Source/kwsys/Base64.h.in
+++ b/Source/kwsys/Base64.h.in
@@ -14,6 +14,8 @@
#include <@KWSYS_NAMESPACE@/Configure.h>
+#include <stddef.h> /* size_t */
+
/* 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
@@ -68,10 +70,10 @@ kwsysEXPORT void kwsysBase64_Encode1(const unsigned char *src,
* the extra padding needed to complete the encode 4 bytes will stop
* the decoding anyway).
*/
-kwsysEXPORT unsigned long kwsysBase64_Encode(const unsigned char *input,
- unsigned long length,
- unsigned char *output,
- int mark_end);
+kwsysEXPORT size_t kwsysBase64_Encode(const unsigned char *input,
+ size_t length,
+ unsigned char *output,
+ int mark_end);
/**
* Decode 4 bytes into a 3 byte string. Returns the number of bytes
@@ -92,10 +94,10 @@ kwsysEXPORT int kwsysBase64_Decode3(const unsigned char *src,
* much decoded data to expect (of course, the buffer must be large
* enough).
*/
-kwsysEXPORT unsigned long kwsysBase64_Decode(const unsigned char *input,
- unsigned long length,
- unsigned char *output,
- unsigned long max_input_length);
+kwsysEXPORT size_t kwsysBase64_Decode(const unsigned char *input,
+ size_t length,
+ unsigned char *output,
+ size_t max_input_length);
#if defined(__cplusplus)
} /* extern "C" */