projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b82b595
)
Add a new macro
author
Miguel de Icaza
<miguel@gnome.org>
Thu, 5 Feb 2009 23:01:12 +0000
(23:01 -0000)
committer
Miguel 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
patch
|
blob
|
history
diff --git
a/eglib/src/glib.h
b/eglib/src/glib.h
index c60a0c6ab480a114f05207688ce4fe1d0f2e33d3..619a071785b34fe7be821bd5a940637d832f36dc 100644
(file)
--- a/
eglib/src/glib.h
+++ b/
eglib/src/glib.h
@@
-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)| \