Re: Blender: New error with min/max function not in scope

2016-02-16 Thread Richard Shaw
On Tue, Feb 16, 2016 at 10:45 AM, Jonathan Wakely wrote: > On 16/02/16 16:31 +, Jonathan Wakely wrote: > >> On 16/02/16 10:13 -0600, Richard Shaw wrote: >> >>> This seems like a pretty basic error in something that has worked fine >>> for >>> a very long time. Is there anything in the GCC 6 u

Re: Blender: New error with min/max function not in scope

2016-02-16 Thread Jonathan Wakely
On 16/02/16 16:31 +, Jonathan Wakely wrote: On 16/02/16 10:13 -0600, Richard Shaw wrote: This seems like a pretty basic error in something that has worked fine for a very long time. Is there anything in the GCC 6 update that would cause this? This no longer compiles with GCC 6: #define ma

Re: Blender: New error with min/max function not in scope

2016-02-16 Thread Jonathan Wakely
On 16/02/16 10:13 -0600, Richard Shaw wrote: This seems like a pretty basic error in something that has worked fine for a very long time. Is there anything in the GCC 6 update that would cause this? This no longer compiles with GCC 6: #define max(a, b) (a > b ? a : b) #include int i = max(0,1

Blender: New error with min/max function not in scope

2016-02-16 Thread Richard Shaw
I was performing a rebuild of Blender after fixing a FTBFS error with openCOLLADA and ran into an interesting error: [ 78%] Building CXX object source/blender/imbuf/intern/dds/CMakeFiles/bf_imbuf_dds.dir/DirectDrawSurface.cpp.o cd /builddir/build/BUILD/blender-2.76/cmake-make/source/blender/imbuf/