Wireshark-bugs: [Wireshark-bugs] [Bug 6134] New: Request for usefully defined #VERSION macro
Date: Mon, 18 Jul 2011 11:07:05 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6134

           Summary: Request for usefully defined #VERSION macro
           Product: Wireshark
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Trivial
          Priority: Low
         Component: Wireshark
        AssignedTo: bugzilla-admin@xxxxxxxxxxxxx
        ReportedBy: eapache@xxxxxxxxx


Build Information:
Paste the COMPLETE build information from "Help->About Wireshark", "wireshark
-v", or "tshark -v".
--
I'm in the position of trying to develop a wireshark plugin, with the
requirement (not my decision) that it will be compilable against multiple
different wiresharks (1.2.*, 1.4.* and 1.6.*).

I had expected this to be fairly straight-forward by using preprocessor #if
macros against some sort of VERSION macro, but the only one I could find in
config.h was a string. Since preprocessor comparison only works with int
values, this isn't really useful.

It would be presumably straight-forward, and extremely useful if you could add
some sort of integer version defines. Something like:

#define VERSION_MAJOR 1
#define VERSION_MINOR 6
#define VERSION_PATCH 0

Obviously since these don't exist in the current releases I'll need to find
some other way to solve my problem (suggestions?), but I'm sure they'll be
useful for somebody else in the future.

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.