annotate src/mingw-glib-2-fixes.patch @ 4382:60e22de65ba4

maint: update dist-files.mk * dist-files.mk: add build-lzip.mk, qt5.mk, qtbase.mk, qttools.mk, qtsvg.mk, qtimageformats.mk, stable-octave-1-gnulib.patch, win7appid.mk, hg-octave-dist.mk
author John D
date Mon, 17 Apr 2017 14:21:42 -0400
parents 96e96221fe09
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3183
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
1 --- a/glib/gatomic.c.orig 2013-07-29 12:05:27 -0400
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
2 +++ a/glib/gatomic.c 2013-07-29 12:07:46 -0400
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
3 @@ -475,6 +475,14 @@
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
4
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
5 #if !defined (_MSC_VER) || _MSC_VER <= 1200
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
6 #include "gmessages.h"
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
7 +
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
8 +#ifndef MemoryBarrier
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
9 +static inline void MemoryBarrier (void) {
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
10 + long dummy = 0;
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
11 + InterlockedExchange (&dummy, 1);
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
12 +}
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
13 +#endif
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
14 +
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
15 /* Inlined versions for older compiler */
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
16 static LONG
96e96221fe09 Update glib mingw native and cross compile
John Donoghue <john.donoghue@ieee.org>
parents:
diff changeset
17 _gInterlockedAnd (volatile guint *atomic,