openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Openexr-devel] Version query?


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)

Is there a way that an app can detect what version of OpenEXR it's using, from the header files? I can't find any #define VERSION or anything like that. (There's a version defined for the file format, but not the library itself.)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]