Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/eglib
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2009-06-20 17:04:50 +0400
committerZoltan Varga <vargaz@gmail.com>2009-06-20 17:04:50 +0400
commit2fefe8320ff974cd6fa9a7e855143671af25e363 (patch)
treebe5ddf562b2e8abc63db6350f1e009b2c634ec66 /eglib
parentcc73403e96af860bf76f828ad2d7d230fa35e8d4 (diff)
2009-06-20 Zoltan Varga <vargaz@gmail.com>
* src/glib.h: Add GUINT32_FROM/TO_BE macros. svn path=/trunk/mono/; revision=136540
Diffstat (limited to 'eglib')
-rw-r--r--eglib/ChangeLog4
-rw-r--r--eglib/src/glib.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/eglib/ChangeLog b/eglib/ChangeLog
index e4fc5be5c2e..0b2b96b182d 100644
--- a/eglib/ChangeLog
+++ b/eglib/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-20 Zoltan Varga <vargaz@gmail.com>
+
+ * src/glib.h: Add GUINT32_FROM/TO_BE macros.
+
2009-06-09 Jonathan Chambers <joncham@gmail.com>
* CMakeLists.txt: Add start of CMake build.
diff --git a/eglib/src/glib.h b/eglib/src/glib.h
index 619a071785b..b840166cb18 100644
--- a/eglib/src/glib.h
+++ b/eglib/src/glib.h
@@ -860,11 +860,15 @@ glong g_utf8_strlen (const gchar *str, gssize max);
# define GUINT64_TO_LE(x) (x)
# define GUINT16_TO_LE(x) (x)
# define GUINT_TO_LE(x) (x)
+# define GUINT32_TO_BE(x) GUINT32_SWAP_LE_BE(x)
+# define GUINT32_FROM_BE(x) GUINT32_SWAP_LE_BE(x)
#else
# define GUINT32_TO_LE(x) GUINT32_SWAP_LE_BE(x)
# define GUINT64_TO_LE(x) GUINT64_SWAP_LE_BE(x)
# define GUINT16_TO_LE(x) GUINT16_SWAP_LE_BE(x)
# define GUINT_TO_LE(x) GUINT32_SWAP_LE_BE(x)
+# define GUINT32_TO_BE(x) (x)
+# define GUINT32_FROM_BE(x) (x)
#endif
#define GUINT32_FROM_LE(x) (GUINT32_TO_LE (x))