Switch to side-by-side view
--- a/src/utils/base64.cpp +++ b/src/utils/base64.cpp @@ -270,6 +270,7 @@ #ifdef TEST_BASE64 #include <stdio.h> #include <stdlib.h> +#include <unistd.h> #include "readfile.h" @@ -357,7 +358,7 @@ fprintf(stderr, "Decoding failed\n"); exit(1); } - write(1, odata.c_str(), + ::write(1, odata.c_str(), odata.size() * sizeof(string::value_type)); exit(0); }