haiku/src/kits/mail/cpp_abi_base64.c
Nathan Whitehorn e1198ce1a8 Fixed the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-13 03:06:14 +00:00

29 lines
916 B
C

#include <mail_encoding.h>
#if __MWERKS__
#define encode_base64__local_abi encode_base64__FPcPcx
#define decode_base64__local_abi decode_base64__FPcPcxb
#define USETHISFILEATALL 1
#elif __GNUC__ <= 2
#define encode_base64__local_abi encode_base64__FPcT0x
#define decode_base64__local_abi decode_base64__FPcT0xb
#define USETHISFILEATALL 1
#endif
#if USETHISFILEATALL /* If we are using GCC >= 3 or something else, we clearly have given up on binary compat anyway */
ssize_t encode_base64__local_abi(char *out, char *in, off_t length);
ssize_t decode_base64__local_abi(char *out, char *in, off_t length, char);
_EXPORT ssize_t encode_base64__local_abi(char *out, char *in, off_t length) {
return encode_base64(out,in,length,0 /* headerMode */);
}
_EXPORT ssize_t decode_base64__local_abi(char *out, char *in, off_t length, char nothing) {
nothing = '\0';
return decode_base64(out,in,length);
}
#endif