1.1 --- a/ucx/utils.h Fri Feb 26 16:22:20 2016 +0100 1.2 +++ b/ucx/utils.h Fri Feb 26 16:33:04 2016 +0100 1.3 @@ -45,7 +45,7 @@ 1.4 #include "ucx.h" 1.5 #include "string.h" 1.6 #include "allocator.h" 1.7 -#include <stdint.h> 1.8 +#include <inttypes.h> 1.9 #include <string.h> 1.10 #include <stdarg.h> 1.11 1.12 @@ -95,7 +95,7 @@ 1.13 * @return total number of bytes copied 1.14 */ 1.15 #define ucx_stream_hcopy(src,dest,rfnc,wfnc) ucx_stream_copy(\ 1.16 - src, dest, (read_func)rfnc, (write_func)wfnc, NULL, 0x100, SIZE_MAX) 1.17 + src, dest, (read_func)rfnc, (write_func)wfnc, NULL, 0x100, (size_t)-1) 1.18 1.19 /** 1.20 * Shorthand for ucx_stream_copy using the default copy buffer and a copy limit.