First is the fix for platform detection in cmake, which should now work for unixes other than Linux and Darwin.
Also removed the defines LINUX and LINUX64, they were only used to set imagesize_t, and using uint64_t seems simpler and more reliable than to keep adding checks for more operating systems. The last change disables using GCC atomic builtins on FreeBSD 32bit. This is somewhat arbitrary, and I'm not sure why _GLIBCXX_ATOMIC_BUILTINS is defined when they are apparently not available (link errors). A better solution might be possible, but it's not clear to me how to detect this case properly, and it should not harm other platforms. You can merge this Pull Request by running: git pull https://github.com/brechtvl/oiio dev-freebsd-build Or you can view, comment on it, or merge it online at: https://github.com/OpenImageIO/oiio/pull/201 -- Commit Summary -- * Arbitrary unix platform detection, use uint64_t for imagesize_t. * Use TBB instead of gcc builtin atomics on non-x86_64 BSD. -- File Changes -- M src/cmake/platform.cmake (7) M src/include/imageio.h (7) M src/include/thread.h (13) -- Patch Links -- https://github.com/OpenImageIO/oiio/pull/201.patch https://github.com/OpenImageIO/oiio/pull/201.diff --- Reply to this email directly or view it on GitHub: https://github.com/OpenImageIO/oiio/pull/201 _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
