Add a new macro
authorMiguel de Icaza <miguel@gnome.org>
Thu, 5 Feb 2009 23:01:12 +0000 (23:01 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 5 Feb 2009 23:01:12 +0000 (23:01 -0000)
svn path=/trunk/mono/; revision=125952

eglib/src/glib.h

index c60a0c6ab480a114f05207688ce4fe1d0f2e33d3..619a071785b34fe7be821bd5a940637d832f36dc 100644 (file)
@@ -841,6 +841,8 @@ glong     g_utf8_strlen        (const gchar *str, gssize max);
 #define G_TRYLOCK(name)
 #define G_UNLOCK(name)
 
+#define GUINT16_SWAP_LE_BE_CONSTANT(x) ((((guint16) x) >> 8) | ((((guint16) x) << 8)))
+
 #define GUINT16_SWAP_LE_BE(x) ((guint16) (((guint16) x) >> 8) | ((((guint16)(x)) & 0xff) << 8))
 #define GUINT32_SWAP_LE_BE(x) ((guint32) \
                               ( (((guint32) (x)) << 24)| \