1. Fixed the image spec test under MSVC: its ```std::string``` internal layout 
is different than the gcc one.
2. Fixed a runtime exception in ```Strutil::unescape_chars``` under MSVC in 
debug mode due to an out of bounds string access.
3. Link against psapi.lib not only when using MSVC but also for any Windows 
compiler.
4. Minor cosmetic fix for 
OpenImageIO/oiio@1dcb61765b13f08a7b64e24315da4de6f36b003d



You can merge this Pull Request by running:

  git pull https://github.com/edgarv/oiio edgarv-msvc-fixes

Or you can view, comment on it, or merge it online at:

  https://github.com/OpenImageIO/oiio/pull/281

-- Commit Summary --

* Fix an invalid index error using assertions with MSVC.
* Cosmetic change: <time.h> to <ctime>
* Link libOpenImageIO against psapi on Windows regardless of the compiler.
* Fix test in MSVC due to wrong assumptions about the layout of std::string.

-- File Changes --

M src/libOpenImageIO/CMakeLists.txt (4)
M src/libOpenImageIO/imagespec_test.cpp (6)
M src/libutil/strutil.cpp (2)
M src/rla.imageio/rlaoutput.cpp (2)
M src/tiff.imageio/tiffoutput.cpp (2)

-- Patch Links --

  https://github.com/OpenImageIO/oiio/pull/281.patch
  https://github.com/OpenImageIO/oiio/pull/281.diff

--- 
Reply to this email directly or view it on GitHub:
https://github.com/OpenImageIO/oiio/pull/281
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to