[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Openexr-devel] OpenEXR Windows port
From: |
Florian Kainz |
Subject: |
Re: [Openexr-devel] OpenEXR Windows port |
Date: |
Fri, 24 Jan 2003 11:07:33 -0800 |
"E. Scott Larsen" wrote:
> > 5. Scoping error with variable declarations within 'for' loops, resulting
> > in multiple defines, required variables to be declared outside of the 'for'
> > loop, once per function.
>
> again, non-spec compilers. I've seen someone do this:
> {for (int i......){
> //code
> }}
> so that all compilers scope the variable declaration properly. It's
> always worked where I work. (MIPSPro, gcc, MSVC, Intel)
>
Someone suggested using the following #define (not sure if
this works; I don't have Visual Studio available to test it):
#define for if(0) { } else for
RE: [Openexr-devel] OpenEXR Windows port, Alexander Stohr, 2003/01/24
RE: [Openexr-devel] OpenEXR Windows port, Alexander Stohr, 2003/01/24