Mercurial > mxe-octave
comparison src/mingw-glib-2-fixes.patch @ 3183:96e96221fe09
Update glib mingw native and cross compile
* src/mingw-glib-2-fixes.patch: New file for MemoryBarrier call.
* src/mingw-glib-1-fixes.patch: update to use latest mxe devel branch glib patch.
* src/glib.mk: run autogen.sh on native build, build just cross version of everything if cross mingw.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Mon, 29 Jul 2013 13:54:19 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3182:23a5b6df3061 | 3183:96e96221fe09 |
---|---|
1 --- a/glib/gatomic.c.orig 2013-07-29 12:05:27 -0400 | |
2 +++ a/glib/gatomic.c 2013-07-29 12:07:46 -0400 | |
3 @@ -475,6 +475,14 @@ | |
4 | |
5 #if !defined (_MSC_VER) || _MSC_VER <= 1200 | |
6 #include "gmessages.h" | |
7 + | |
8 +#ifndef MemoryBarrier | |
9 +static inline void MemoryBarrier (void) { | |
10 + long dummy = 0; | |
11 + InterlockedExchange (&dummy, 1); | |
12 +} | |
13 +#endif | |
14 + | |
15 /* Inlined versions for older compiler */ | |
16 static LONG | |
17 _gInterlockedAnd (volatile guint *atomic, |