Hi,

I just applied the below patch, which has been preapproved by ktietz
on IRC yesterday.  Since the affected functions don't exist as exported
functions in kernel32.dll, their inline implementation must always be
available, even if __CRT__NO_INLINE is defined.


Corinna


        * winnt.h (NtCurrentTeb): Always define inline implementation.
        (GetCurrentFiber): Ditto.
        (GetFiberData): Ditto.
        (MemoryBarrier): Ditto.


Index: winnt.h
===================================================================
--- winnt.h     (revision 5167)
+++ winnt.h     (working copy)
@@ -1860,7 +1860,6 @@
   }
 #endif
 
-#ifndef __CRT__NO_INLINE
   __CRT_INLINE VOID MemoryBarrier(VOID)
   {
     LONG Barrier = 0;
@@ -1890,7 +1889,6 @@
        : "=r" (ret));
     return ret;
   }
-#endif /* !__CRT__NO_INLINE */
 #endif /* defined(__i386__) && !defined(__x86_64) */
 
 #define EXCEPTION_READ_FAULT 0

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to