Package: mingw-w64-common
Version: 4.0.4-2
Severity: important

Dear Maintainer,

my test builds for cross-compiling ncurses failed due to a missing ifdef
in winnt.h

Here is a fix:

--- /usr/share/mingw-w64/include/winnt.h.orig   2016-01-02 13:12:44.000000000 
-0500
+++ /usr/share/mingw-w64/include/winnt.h        2016-02-27 20:06:50.562433972 
-0500
@@ -1998,6 +1998,7 @@
 
 #define DbgRaiseAssertionFailure __int2c
 
+#ifndef __CRT__NO_INLINE
   __CRT_INLINE struct _TEB *NtCurrentTeb(void)
   {
     return (struct _TEB *)__readfsdword(PcTeb);
@@ -2010,6 +2011,7 @@
   {
       return *(PVOID *)GetCurrentFiber();
   }
+#endif /* !__CRT__NO_INLINE */
 #endif /* defined(__i386__) && !defined(__x86_64) */
 
 #define EXCEPTION_READ_FAULT 0

-- System Information:
Debian Release: 7.9
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Reply via email to