Define g_atomic_(int|pointer)_get only for

2004-03-01  Sebastian Wilhelmi  <seppi@seppi.de>

	* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
	G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
This commit is contained in:
Sebastian Wilhelmi 2004-03-01 10:21:26 +00:00 committed by Sebastian Wilhelmi
parent e1c15eb0d1
commit 2af063c00e
7 changed files with 33 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to

View File

@ -1,3 +1,8 @@
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to

View File

@ -1,3 +1,8 @@
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to

View File

@ -1,3 +1,8 @@
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to

View File

@ -1,3 +1,8 @@
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to

View File

@ -1,3 +1,8 @@
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
G_ATOMIC_OP_MEMORY_BARRIER_NEEDED. Spotted by Hans Breuer.
Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com> Sun Feb 29 21:42:47 2004 Owen Taylor <otaylor@redhat.com>
* glib/gmain.c: Fix leftover references to * glib/gmain.c: Fix leftover references to

View File

@ -530,6 +530,7 @@ g_atomic_pointer_compare_and_exchange (gpointer *atomic,
return result; return result;
} }
#ifdef G_ATOMIC_OP_MEMORY_BARRIER_NEEDED
gint gint
g_atomic_int_get (gint *atomic) g_atomic_int_get (gint *atomic)
{ {
@ -553,6 +554,7 @@ g_atomic_pointer_get (gpointer *atomic)
return result; return result;
} }
#endif /* G_ATOMIC_OP_MEMORY_BARRIER_NEEDED */
#elif defined (G_ATOMIC_OP_MEMORY_BARRIER_NEEDED) #elif defined (G_ATOMIC_OP_MEMORY_BARRIER_NEEDED)
gint gint
g_atomic_int_get (gint *atomic) g_atomic_int_get (gint *atomic)