opencollada.diff 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 95abbe2..4f14f30 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -254,11 +254,11 @@ if(USE_STATIC_MSVC_RUNTIME)
  6. endif()
  7. #adding PCRE
  8. -find_package(PCRE)
  9. +#find_package(PCRE)
  10. if (PCRE_FOUND)
  11. message(STATUS "SUCCESSFUL: PCRE found")
  12. else () # if pcre not found building its local copy from ./Externals
  13. - if (WIN32 OR APPLE)
  14. + if (1)
  15. message("WARNING: Native PCRE not found, taking PCRE from ./Externals")
  16. add_definitions(-DPCRE_STATIC)
  17. add_subdirectory(${EXTERNAL_LIBRARIES}/pcre)
  18. diff --git a/DAEValidator/library/include/no_warning_begin b/DAEValidator/library/include/no_warning_begin
  19. index 7a69c32..defb315 100644
  20. --- a/DAEValidator/library/include/no_warning_begin
  21. +++ b/DAEValidator/library/include/no_warning_begin
  22. @@ -2,6 +2,9 @@
  23. #if defined(_WIN32)
  24. # pragma warning(push)
  25. # pragma warning(disable:4668)
  26. +# if _MSC_VER >=1900
  27. +# pragma warning(disable:5031)
  28. +# endif
  29. # if defined(_MSC_VER) && defined(_DEBUG)
  30. # pragma warning(disable:4548)
  31. # endif
  32. diff --git a/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp b/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp
  33. index 1f9a3ee..d151e9a 100644
  34. --- a/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp
  35. +++ b/GeneratedSaxParser/src/GeneratedSaxParserUtils.cpp
  36. @@ -1553,7 +1553,7 @@ namespace GeneratedSaxParser
  37. #if defined(COLLADABU_OS_WIN) && !defined(__MINGW32__)
  38. return _isnan( value ) ? true : false;
  39. #else
  40. -#ifdef isnan
  41. +#if defined(isnan) || defined(__APPLE__)
  42. return isnan( value );
  43. #else
  44. return std::isnan(value);