#define GUINT_TO_LE(val) ((guint) GUINT${gintbits}_TO_LE (val))
#define GINT_TO_BE(val) ((gint) GINT${gintbits}_TO_BE (val))
#define GUINT_TO_BE(val) ((guint) GUINT${gintbits}_TO_BE (val))
+#define GSIZE_TO_LE(val) ((gsize) GUINT${gsizebits}_TO_LE (val))
+#define GSSIZE_TO_LE(val) ((gssize) GINT${gsizebits}_TO_LE (val))
+#define GSIZE_TO_BE(val) ((gsize) GUINT${gsizebits}_TO_BE (val))
+#define GSSIZE_TO_BE(val) ((gssize) GINT${gsizebits}_TO_BE (val))
#define G_BYTE_ORDER $g_byte_order
#define GLIB_SYSDEF_POLLIN =$g_pollin
gintbits=`expr $ac_cv_sizeof_int \* 8`
glongbits=`expr $ac_cv_sizeof_long \* 8`
+gsizebits=`expr $ac_cv_sizeof_size_t \* 8`
case $ac_cv_sizeof_void_p in
$ac_cv_sizeof_int)
@Returns: @val converted to little-endian.
+<!-- ##### MACRO GSIZE_FROM_BE ##### -->
+<para>
+Converts a #gsize value from big-endian to the host byte order.
+</para>
+
+@val: a #gsize value in big-endian byte order.
+@Returns: @val converted to host byte order.
+
+
+<!-- ##### MACRO GSIZE_FROM_LE ##### -->
+<para>
+Converts a #gsize value from little-endian to host byte order.
+</para>
+
+@val: a #gsize value in little-endian byte order.
+@Returns: @val converted to host byte order.
+
+
+<!-- ##### MACRO GSIZE_TO_BE ##### -->
+<para>
+Converts a #gsize value from host byte order to big-endian.
+</para>
+
+@val: a #gsize value in host byte order.
+@Returns: @val converted to big-endian byte order.
+
+
+<!-- ##### MACRO GSIZE_TO_LE ##### -->
+<para>
+Converts a #gsize value from host byte order to little-endian.
+</para>
+
+@val: a #gsize value in host byte order.
+@Returns: @val converted to little-endian.
+
+
+<!-- ##### MACRO GSSIZE_FROM_BE ##### -->
+<para>
+Converts a #gssize value from big-endian to host byte order.
+</para>
+
+@val: a #gssize value in big-endian byte order.
+@Returns: @val converted to host byte order.
+
+
+<!-- ##### MACRO GSSIZE_FROM_LE ##### -->
+<para>
+Converts a #gssize value from little-endian to host byte order.
+</para>
+
+@val: a #gssize value in little-endian byte order.
+@Returns: @val converted to host byte order.
+
+
+<!-- ##### MACRO GSSIZE_TO_BE ##### -->
+<para>
+Converts a #gssize value from host byte order to big-endian.
+</para>
+
+@val: a #gssize value in host byte order.
+@Returns: @val converted to big-endian.
+
+
+<!-- ##### MACRO GSSIZE_TO_LE ##### -->
+<para>
+Converts a #gssize value from host byte order to little-endian.
+</para>
+
+@val: a #gssize value in host byte order.
+@Returns: @val converted to little-endian.
+
+
<!-- ##### MACRO GINT16_FROM_BE ##### -->
<para>
Converts a #gint16 value from big-endian to host byte order.
#define GINT_FROM_BE(val) (GINT_TO_BE (val))
#define GUINT_FROM_BE(val) (GUINT_TO_BE (val))
+#define GSIZE_FROM_LE(val) (GSIZE_TO_LE (val))
+#define GSSIZE_FROM_LE(val) (GSSIZE_TO_LE (val))
+#define GSIZE_FROM_BE(val) (GSIZE_TO_BE (val))
+#define GSSIZE_FROM_BE(val) (GSSIZE_TO_BE (val))
+
/* Portable versions of host-network order stuff
*/
#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
+#define GSIZE_TO_LE(val) ((gsize) GUINT32_TO_LE (val))
+#define GSSIZE_TO_LE(val) ((gssize) GINT32_TO_LE (val))
+#define GSIZE_TO_BE(val) ((gsize) GUINT32_TO_BE (val))
+#define GSSIZE_TO_BE(val) ((gssize) GINT32_TO_BE (val))
#define G_BYTE_ORDER G_LITTLE_ENDIAN
#define GLIB_SYSDEF_POLLIN =1