Mercurial > mxe-octave
diff src/dbus-1-fixes.patch @ 3108:acee522701c0
[MSVC] enable dbus compilation
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Fri, 28 Jun 2013 21:14:15 -0400 |
parents | 0c267ecd6ee6 |
children |
line wrap: on
line diff
--- a/src/dbus-1-fixes.patch Fri Jun 28 19:57:56 2013 -0400 +++ b/src/dbus-1-fixes.patch Fri Jun 28 21:14:15 2013 -0400 @@ -15,16 +15,18 @@ index b492b09..082225f 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c -@@ -55,6 +55,13 @@ +@@ -55,6 +55,15 @@ #include <ws2tcpip.h> #include <wincrypt.h> ++#ifdef __GNUC__ +__CRT_INLINE VOID MemoryBarrier(VOID) +{ + LONG Barrier = 0; + __asm__ __volatile__("xchgl %%eax,%0 " + :"=r" (Barrier)); +} ++#endif + /* Declarations missing in mingw's headers */ extern BOOL WINAPI ConvertStringSidToSidA (LPCSTR StringSid, PSID *Sid);