[Bro-Dev] #335: Fix compiler warnings
Bro Tracker
bro at tracker.icir.org
Tue Feb 8 14:50:32 PST 2011
#335: Fix compiler warnings
----------------------+--------------------
Reporter: seth | Owner:
Type: Problem | Status: new
Priority: Normal | Milestone: Bro1.6
Component: Bro | Version:
Resolution: | Keywords: sprint
----------------------+--------------------
Comment (by robin):
From Gregor:
{{{
C++ compilers don't enable these macros per default as they
are in the C99 standard. Grrr. You have to define
#define _ISOC99_SOURCE
#define __STDC_LIMIT_MACROS
#define __STDC_CONSTANT_MACROS
#define __STDC_FORMAT_MACROS
before you include any of the header files. util.h or so might be a good
place to add these defines. (For the printf macros to work, you probably
only need the first and the last define, but I the others are probably
handy too).
See also:
http://publib.boulder.ibm.com/infocenter/zos/v1r9/topic/com.ibm.zos.r9.cbcpx01/c99ftmacros.htm
}}}
--
Ticket URL: <http://tracker.icir.org/bro/ticket/335#comment:3>
Bro Tracker <http://tracker.icir.org/bro>
Bro Issue Tracker
More information about the bro-dev
mailing list