OpenImageIO/oiio — pull request #201 by brechtvl (2011-12-08 19:37:28+00:00)
Title: FreeBSD build fixes

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.