mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
Use G_GNUC_EXTENSION instead of __extension__. Patch from Pavel Roskin
2001-07-27 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * glib.h: Use G_GNUC_EXTENSION instead of __extension__. Patch from Pavel Roskin <proski@gnu.org>.
This commit is contained in:
parent
1f2b1ef109
commit
cc164f7d5a
@ -1,3 +1,8 @@
|
|||||||
|
2001-07-27 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Use G_GNUC_EXTENSION instead of __extension__. Patch
|
||||||
|
from Pavel Roskin <proski@gnu.org>.
|
||||||
|
|
||||||
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* Released 1.2.10
|
* Released 1.2.10
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-07-27 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Use G_GNUC_EXTENSION instead of __extension__. Patch
|
||||||
|
from Pavel Roskin <proski@gnu.org>.
|
||||||
|
|
||||||
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* Released 1.2.10
|
* Released 1.2.10
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-07-27 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Use G_GNUC_EXTENSION instead of __extension__. Patch
|
||||||
|
from Pavel Roskin <proski@gnu.org>.
|
||||||
|
|
||||||
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* Released 1.2.10
|
* Released 1.2.10
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-07-27 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Use G_GNUC_EXTENSION instead of __extension__. Patch
|
||||||
|
from Pavel Roskin <proski@gnu.org>.
|
||||||
|
|
||||||
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* Released 1.2.10
|
* Released 1.2.10
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-07-27 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Use G_GNUC_EXTENSION instead of __extension__. Patch
|
||||||
|
from Pavel Roskin <proski@gnu.org>.
|
||||||
|
|
||||||
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* Released 1.2.10
|
* Released 1.2.10
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-07-27 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Use G_GNUC_EXTENSION instead of __extension__. Patch
|
||||||
|
from Pavel Roskin <proski@gnu.org>.
|
||||||
|
|
||||||
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* Released 1.2.10
|
* Released 1.2.10
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-07-27 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Use G_GNUC_EXTENSION instead of __extension__. Patch
|
||||||
|
from Pavel Roskin <proski@gnu.org>.
|
||||||
|
|
||||||
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* Released 1.2.10
|
* Released 1.2.10
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2001-07-27 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* glib.h: Use G_GNUC_EXTENSION instead of __extension__. Patch
|
||||||
|
from Pavel Roskin <proski@gnu.org>.
|
||||||
|
|
||||||
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
Thu Mar 15 10:37:49 2001 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* Released 1.2.10
|
* Released 1.2.10
|
||||||
|
6
glib.h
6
glib.h
@ -530,7 +530,7 @@ typedef gint32 GTime;
|
|||||||
*/
|
*/
|
||||||
#if defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2
|
#if defined (__i386__) && defined (__GNUC__) && __GNUC__ >= 2
|
||||||
# define GUINT16_SWAP_LE_BE_X86(val) \
|
# define GUINT16_SWAP_LE_BE_X86(val) \
|
||||||
(__extension__ \
|
(G_GNUC_EXTENSION \
|
||||||
({ register guint16 __v; \
|
({ register guint16 __v; \
|
||||||
if (__builtin_constant_p (val)) \
|
if (__builtin_constant_p (val)) \
|
||||||
__v = GUINT16_SWAP_LE_BE_CONSTANT (val); \
|
__v = GUINT16_SWAP_LE_BE_CONSTANT (val); \
|
||||||
@ -543,7 +543,7 @@ typedef gint32 GTime;
|
|||||||
# if !defined(__i486__) && !defined(__i586__) \
|
# if !defined(__i486__) && !defined(__i586__) \
|
||||||
&& !defined(__pentium__) && !defined(__i686__) && !defined(__pentiumpro__)
|
&& !defined(__pentium__) && !defined(__i686__) && !defined(__pentiumpro__)
|
||||||
# define GUINT32_SWAP_LE_BE_X86(val) \
|
# define GUINT32_SWAP_LE_BE_X86(val) \
|
||||||
(__extension__ \
|
(G_GNUC_EXTENSION \
|
||||||
({ register guint32 __v; \
|
({ register guint32 __v; \
|
||||||
if (__builtin_constant_p (val)) \
|
if (__builtin_constant_p (val)) \
|
||||||
__v = GUINT32_SWAP_LE_BE_CONSTANT (val); \
|
__v = GUINT32_SWAP_LE_BE_CONSTANT (val); \
|
||||||
@ -556,7 +556,7 @@ typedef gint32 GTime;
|
|||||||
__v; }))
|
__v; }))
|
||||||
# else /* 486 and higher has bswap */
|
# else /* 486 and higher has bswap */
|
||||||
# define GUINT32_SWAP_LE_BE_X86(val) \
|
# define GUINT32_SWAP_LE_BE_X86(val) \
|
||||||
(__extension__ \
|
(G_GNUC_EXTENSION \
|
||||||
({ register guint32 __v; \
|
({ register guint32 __v; \
|
||||||
if (__builtin_constant_p (val)) \
|
if (__builtin_constant_p (val)) \
|
||||||
__v = GUINT32_SWAP_LE_BE_CONSTANT (val); \
|
__v = GUINT32_SWAP_LE_BE_CONSTANT (val); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user