projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
056d804
)
Define SWAP16 if not already defined
author
Ken Raeburn
<raeburn@mit.edu>
Mon, 5 Jan 2009 22:45:10 +0000
(22:45 +0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Mon, 5 Jan 2009 22:45:10 +0000
(22:45 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21703
dc483132
-0cff-0310-8789-
dd5450dbe970
src/util/support/utf8_conv.c
patch
|
blob
|
history
diff --git
a/src/util/support/utf8_conv.c
b/src/util/support/utf8_conv.c
index a8c9267efb5647c52be946cb7b252d73250ceb3c..185dc4ba77b9384c1af5dca049795ce18062c5dd 100644
(file)
--- 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