aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap-int.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-02-13 07:07:17 +0000
committerGuy Harris <guy@alum.mit.edu>2001-02-13 07:07:17 +0000
commit2833a57f099b86d7ab7d20d94a88a35005f72a1e (patch)
tree9630fbcac54fa346a673eccbf7196746fea7ef1b /wiretap/wtap-int.h
parentb3f35be74acc6bdb8ec109f44c0eb88867be6484 (diff)
You have to define "htolell()" on little-endian platforms, too....
svn path=/trunk/; revision=3028
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r--wiretap/wtap-int.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h
index e07fa0043e..7f97d97685 100644
--- a/wiretap/wtap-int.h
+++ b/wiretap/wtap-int.h
@@ -1,6 +1,6 @@
/* wtap-int.h
*
- * $Id: wtap-int.h,v 1.11 2001/02/13 00:50:05 guy Exp $
+ * $Id: wtap-int.h,v 1.12 2001/02/13 07:07:17 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -222,12 +222,13 @@ struct wtap_dumper {
#ifdef G_HAVE_GINT64
#define htolell(ll) GUINT64_TO_LE(ll)
-#endif
+#endif /* G_HAVE_GINT64 */
-#else
+#else /* WORDS_BIGENDIAN */
#define htoles(s) (s)
#define htolel(l) (l)
-#endif
+#define htolell(ll) (ll)
+#endif /* WORDS_BIGENDIAN */
/* Pointer versions of ntohs and ntohl. Given a pointer to a member of a
* byte array, returns the value of the two or four bytes at the pointer.