Reintroduce BeOS compatible en/decode_base64.

Fixes #8579.
This commit is contained in:
Adrien Destugues 2014-02-19 18:47:22 +01:00
parent 838c4c8779
commit 64c12b418f
1 changed files with 14 additions and 0 deletions

View File

@ -129,3 +129,17 @@ decode_base64(char *out, const char *in, off_t length)
}
#if __GNUC__ <= 2
// BeOS-ABI compatible wrappers.
ssize_t encode_base64(char *out, char *in, off_t length)
{
return encode_base64(out, in, length, 0);
}
ssize_t decode_base64(char *out, const char *in, off_t length,
bool /*replace_cr*/)
{
return decode_base64(out, in, length);
}
#endif