ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] order of include files

From: Martin Kaiser <lists@xxxxxxxxx>
Date: Thu, 4 Oct 2012 22:43:46 +0200
Hi,

should the order in which we include files make any difference?

#include <epan/packet.h> 
#include <epan/expert.h> 
-> ok

#include <epan/expert.h> 
#include <epan/packet.h> 
-> failure

expert.h needs packet_info.h, which is included by packet.h

Trivial fix is of course to include packet_info.h in experts.h.
Are such issues worth fixing?

Best regards,

   Martin