svn rev #21703: trunk/src/util/support/

raeburn@MIT.EDU raeburn at MIT.EDU
Mon Jan 5 17:45:10 EST 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=21703
Commit By: raeburn
Log Message:
Define SWAP16 if not already defined.


Changed Files:
U   trunk/src/util/support/utf8_conv.c
Modified: trunk/src/util/support/utf8_conv.c
===================================================================
--- trunk/src/util/support/utf8_conv.c	2009-01-05 22:44:41 UTC (rev 21702)
+++ trunk/src/util/support/utf8_conv.c	2009-01-05 22:45:10 UTC (rev 21703)
@@ -103,6 +103,9 @@
 		
 	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




More information about the cvs-krb5 mailing list