ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: [Wireshark-dev] _STAT_H in epan/stat_cmd_args.h

From: Gisle Vanem <gvanem@xxxxxxxxxxxx>
Date: Tue, 23 Aug 2011 15:12:38 +0200
The header-guard '_STAT_H_' in epan/stat_cmd_args.h clashes with the
header-guard in MingW's <sys/stat.h>. Hence the protype for
'register_stat_cmd_arg()' isn't seen when <sys/stat.h> is included first.
Would you please rename the guard like this:

--- epan\stat_cmd_args.h        Tue Jun 24 06:44:59 2008
+++ SVN-Latest\epan\stat_cmd_args.h     Tue Aug 23 15:07:31 2011
@@ -23,8 +23,8 @@
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */

-#ifndef _STAT_H_
-#define _STAT_H_
+#ifndef _STAT_CMD_ARGS_H_
+#define _STAT_CMD_ARGS_H_

extern void register_stat_cmd_arg(const char *cmd,
    void (*func)(const char *arg,void* userdata), void* userdata);

-----------

--gv