diff options
Diffstat (limited to 'include/asterisk/utils.h')
-rw-r--r-- | include/asterisk/utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index 5ef1f96f9..e3b98435a 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -227,6 +227,8 @@ int ast_base64encode_full(char *dst, const unsigned char *src, int srclen, int m #undef MAX #define MAX(a, b) ({ typeof(a) __a = (a); typeof(b) __b = (b); ((__a < __b) ? __b : __a);}) +#define SWAP(a,b) do { typeof(a) __tmp = (a); (a) = (b); (b) = __tmp; } while (0) + /*! * \brief Encode data in base64 * \param dst the destination buffer |