• Martin Storsjö's avatar
    libavformat: Only use MoveFileExA when targeting the desktop API subset · 8ebf02f8
    Martin Storsjö authored
    The MoveFileExA is available in the headers regardless which API
    subset is targeted, but it is missing in the Windows Phone link
    libraries. When targeting Windows Store apps, the function is
    available both in the headers and in the link libraries, and thus
    there is no indication for the build system that this function
    should be avoided - such an indication is only given by the
    Windows App Certification Kit, which forbids using the MoveFileExA
    function.
    
    Therefore check the WINAPI_FAMILY defines instead, to figure out
    which API subset is targeted.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    8ebf02f8
os_support.h 6.14 KB