Anybody knows, how to get Wireshark version during compilation ? I am writing a dissector plugin, and I would like to be able to build this plugin under different version of Wireshark. The interface functions prototypes can differ in different version of Wireshark, so I would like to check it during build, something like this:
Is it possible to get a version somehow?
asked 01 Feb '16, 05:01
You should use the following preprocessor variables: VERSION_MAJOR, VERSION_MINOR, VERSION_MICRO
For example in my own plugins I use this kind of code:
answered 01 Feb '16, 08:49
Edit: Ignore, the answer from @Pascal Quantin is the correct answer.
answered 01 Feb '16, 06:25
edited 01 Feb '16, 14:59