|
From: | Larry Gritz |
Subject: | [Openexr-devel] Version query? |
Date: | Sat, 30 May 2009 15:33:55 -0700 |
User-agent: | Thunderbird 2.0.0.21 (Macintosh/20090302) |
This would be really helpful for an application that wants to compile itself against whatever version of OpenEXR is on the system it finds, and #ifdef out code that may not be supported in certain versions. For example, there are some compression methods that are new to 1.6, and if you use the enum but you're really compiling against 1.4, it won't compile. You'd like to #if OPENEXR_VERSION >= 10601 ... or something like that, so it can take advantage of the new feature if available, but not break the compile if it's too old.
If such a thing is not already there, I recommend adding it in future releases. If it is there, it's very well hidden!
-- Larry Gritz address@hidden
[Prev in Thread] | Current Thread | [Next in Thread] |