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:
Sebastian Wilhelmi 2001-07-27 10:44:12 +00:00 committed by Sebastian Wilhelmi
parent 1f2b1ef109
commit cc164f7d5a
9 changed files with 43 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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
View File

@ -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); \