• Zebediah Figura's avatar
    makedep: Do not forbid importing system headers in msvcrt modules. · 9951f2f4
    Zebediah Figura authored
    The apparent intention of catching mistakes early is laudable. However, the
    number of exceptions both in the code and not in the code (in particular,
    valgrind.h) shows that this is clearly getting in the way more often than not.
    
    In practice an attempt to compile with a system API we don't support will be met
    with a clear error at link time, e.g.:
    
    /usr/bin/x86_64-w64-mingw32-ld: dlls/xmllite/reader.cross.o: in function `debugstr_nodetype':
    /home/whatsit/git/wine64/../wine/dlls/xmllite/reader.c:116: undefined reference to `pthread_once'
    
    And when there is no external function involved (as with stdarg.h, x86intrin.h,
    valgrind.h), there's no reason to prevent use of the headers.
    
    The motivation for this patch is the ability to import system vkd3d.h in e.g.
    d3d12 and dxgi, which do not link to libvkd3d directly (but rather indirectly
    through wined3d) and so do not fall under the has_external_import() exception. I
    could see no simple way to adapt has_external_import() to account for this case.
    Signed-off-by: 's avatarZebediah Figura <zfigura@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    9951f2f4
Name
Last commit
Last update
..
sfnt2fon Loading commit data...
widl Loading commit data...
winapi Loading commit data...
winebuild Loading commit data...
winedump Loading commit data...
winegcc Loading commit data...
winemaker Loading commit data...
wmc Loading commit data...
wrc Loading commit data...
Makefile.in Loading commit data...
buildimage Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
examine-relay Loading commit data...
findfunc Loading commit data...
install-sh Loading commit data...
make_announce Loading commit data...
make_makefiles Loading commit data...
make_requests Loading commit data...
make_specfiles Loading commit data...
make_unicode Loading commit data...
make_xftmpl.c Loading commit data...
makedep.c Loading commit data...
runtest Loading commit data...
tools.h Loading commit data...
wineapploader.in Loading commit data...
winewrapper Loading commit data...