Skip to content

x86: fix redefinition of _WIN32_WINNT in looprestoration

James Almer requested to merge jamrial/dav1d:looprestoration into master

Removes the following warnings on Mingw-w64 targets:

[22/93] Compiling C object src/src@@dav1d_bitdepth_8@sta/x86_looprestoration_init.c.obj.
In file included from ../src/cpu.h:31,
                 from ../src/x86/looprestoration_init.c:33:
./config.h:34: warning: "_WIN32_WINNT" redefined
 #define _WIN32_WINNT 0x0601

In file included from F:/msys/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10,
                 from F:/msys/mingw64/x86_64-w64-mingw32/include/assert.h:15,
                 from ../src/x86/looprestoration_init.c:28:
F:/msys/mingw64/x86_64-w64-mingw32/include/_mingw.h:232: note: this is the location of the previous definition
 #define _WIN32_WINNT 0x601
[39/93] Compiling C object src/src@@dav1d_bitdepth_10@sta/x86_looprestoration_init.c.obj.
In file included from ../src/cpu.h:31,
                 from ../src/x86/looprestoration_init.c:33:
./config.h:34: warning: "_WIN32_WINNT" redefined
 #define _WIN32_WINNT 0x0601

In file included from F:/msys/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10,
                 from F:/msys/mingw64/x86_64-w64-mingw32/include/assert.h:15,
                 from ../src/x86/looprestoration_init.c:28:
F:/msys/mingw64/x86_64-w64-mingw32/include/_mingw.h:232: note: this is the location of the previous definition
 #define _WIN32_WINNT 0x601

Merge request reports