From c83458872a8510232e184d6ca200283d368fa422 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 5 Jan 2009 22:45:10 +0000 Subject: [PATCH] Define SWAP16 if not already defined git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21703 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/support/utf8_conv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/support/utf8_conv.c b/src/util/support/utf8_conv.c index a8c9267ef..185dc4ba7 100644 --- a/src/util/support/utf8_conv.c +++ b/src/util/support/utf8_conv.c @@ -103,6 +103,9 @@ k5_utf8s_to_ucs2s(krb5_ucs2 *ucs2str, if (ucs2str != NULL) { #ifdef K5_BE +#ifndef SWAP16 +#define SWAP16(X) ((((X) << 8) | ((X) >> 8)) & 0xFFFF) +#endif if (little_endian) ucs2str[ucs2len] = SWAP16(ch); else -- 2.26.2