fixes for gcc-4.4.2 (issue573042)


cliffo...@...
 

Reviewers: dev-osl_imageworks.com, osl-dev_googlegroups.com,

Description:
Here are some fixes to get OSL to compile with gcc-4.4.2. Some of these
fixes I shamelessly lifted from Chris.F's patch from a while back. It's
mostly pretty straightforward.

I've added support for unordered_map/sets if the compiler is new enough.
I'm not sure if this is the way we want to proceed because it's rather
verbose/ugly (should I use a #define instead?). Maybe once we upgrade
to something more recent than our archaic compiler and boost library
then we can clean this up properly?

Please review this at http://codereview.appspot.com/573042/show

Affected files:
site/spi/Makefile-bits
src/liboslcomp/symtab.h
src/liboslexec/bsdf_cloth.cpp
src/liboslexec/bsdf_cloth_specular.cpp
src/liboslexec/context.cpp
src/liboslexec/exec.cpp
src/liboslexec/instance.cpp
src/liboslexec/oslops.h
src/oslc/oslcmain.cpp
src/oslinfo/oslinfo.cpp
src/testshade/simplerend.cpp


Chris Foster <chri...@...>
 

On Wed, Mar 17, 2010 at 9:20 AM, <cliffo...@...> wrote:
Description:
Here are some fixes to get OSL to compile with gcc-4.4.2.  Some of these
fixes I shamelessly lifted from Chris.F's patch from a while back.  It's
mostly pretty straightforward.
LGTM2. Good to see the patch I posted a while back wasn't too moldy
to be slightly helpful :)