DescriptionFixed cross compilation with mingw.
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:
Committed: http://code.google.com/p/skia/source/detail?r=13862
Patch Set 1 #
Total comments: 3
Patch Set 2 : try2: Use SkAtomics_sync.h on mingw #
Total comments: 2
Patch Set 3 : Fixed version #Patch Set 4 : Patchset with AUTHORS change #
Messages
Total messages: 16 (0 generated)
|