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
l...@larrygritz.com


_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/openexr-devel

Reply via email to