From 9f1b5ea9bce5dece7d785d8d42c08717971a6723 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 29 Oct 2007 23:38:11 +0000 Subject: Define htonll, ntohll using k5_ versions if needed. Drop Mac-specific bits git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20151 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ccapi/common/cci_stream.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/ccapi/common') diff --git a/src/ccapi/common/cci_stream.c b/src/ccapi/common/cci_stream.c index b19e7bbfb5..8c0ef3356e 100644 --- a/src/ccapi/common/cci_stream.c +++ b/src/ccapi/common/cci_stream.c @@ -1,7 +1,7 @@ /* * $Header$ * - * Copyright 2006 Massachusetts Institute of Technology. + * Copyright 2006, 2007 Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -25,20 +25,16 @@ */ #include "cci_common.h" - -#if TARGET_OS_MAC -#include +#include "k5-platform.h" /* for byte swapping */ #if !defined(htonll) -#define htonll(x) OSSwapHostToBigInt64(x) +#define htonll(x) k5_htonll(x) #endif #if !defined(ntohll) -#define ntohll(x) OSSwapBigToHostInt64(x) +#define ntohll(x) k5_ntohll(x) #endif -#endif /* TARGET_OS_MAC */ - struct cci_stream_d { char *data; cc_uint64 size; -- cgit