• commit-bot@chromium.org's avatar
    Fixed cross compilation with mingw. · 8e13a159
    commit-bot@chromium.org authored
    Tested in Mozilla source tree. I tried to use skia build system, but it's up to the task for cross compilation.
    
    SkHRESULT.cpp - Use proper file name (that matters on case sensitive OSes)
    
    SkAtomics_win.h - Don't use pragma intrinsic on GCC (this causes massive warnings)
    
    SkOSFile_win.cpp - This one is tricky. GCC doesn't allow (void*) casts in template argument constants and INVALID_HANDLE_VALUE looks like this:
    ((HANDLE)(LONG_PTR)-1)
    where HANDLE is typedefed to void*. Changed the code to use LONG_PTR as template argument and cast it when needed.
    
    BUG=skia:
    R=bungeman@google.com, reed@google.com
    
    Author: cjacek@gmail.com
    
    Review URL: https://codereview.chromium.org/198643004
    
    git-svn-id: http://skia.googlecode.com/svn/trunk@13862 2bbb7eff-a529-9590-31e7-b0007b416f81
    8e13a159
AUTHORS 683 Bytes