Added sanity to the C++ ABI hack. If we aren't using GCC 2 or mwcc, we clearly don't care about binary compatibility, so there is no point in using the BC shim.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9943 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Nathan Whitehorn
2004-11-12 18:53:45 +00:00
parent ead0d79064
commit 8a3a4e98dc
+5 -2
View File
@@ -3,13 +3,14 @@
#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
#else
#error "We don't seem to have a C++ ABI hack for your compiler. Please add one."
#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);
@@ -23,3 +24,5 @@ _EXPORT ssize_t decode_base64__local_abi(char *out, char *in, off_t length, char
return decode_base64(out,in,length);
}
#endif