libical r660 - in trunk: . src/libical
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: libical r660 - in trunk: . src/libical
- Date: Fri, 9 Jan 2009 17:54:54 +0000 (UTC)
Author: tml
Date: Fri Jan 9 17:54:54 2009
New Revision: 660
URL: http://svn.gnome.org/viewvc/libical?rev=660&view=rev
Log:
2009-01-09 Tor Lillqvist <tml novell com>
* src/libical/icaltz-util.c: Call the byte-swapping macro bswap32
on Windows, as that is what the code that uses it wants on
non-Linux.
Modified:
trunk/ChangeLog
trunk/src/libical/icaltz-util.c
Modified: trunk/src/libical/icaltz-util.c
==============================================================================
--- trunk/src/libical/icaltz-util.c (original)
+++ trunk/src/libical/icaltz-util.c Fri Jan 9 17:54:54 2009
@@ -27,7 +27,7 @@
#define BIG_ENDIAN 'B'
#define LITTLE_ENDIAN 'l'
#define BYTE_ORDER LITTLE_ENDIAN
-#define bswap_32(val) ((((val) & 0x000000ffU) << 24) | (((val) & 0x0000ff00U) << 8) | (((val) & 0x00ff0000U) >> 8) | (((val) & 0xff000000U) >> 24))
+#define bswap32(val) ((((val) & 0x000000ffU) << 24) | (((val) & 0x0000ff00U) << 8) | (((val) & 0x00ff0000U) >> 8) | (((val) & 0xff000000U) >> 24))
#elif defined(__linux__)
#include <byteswap.h>
#include <endian.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]