On Tue, Jun 24, 2014 at 06:13:31PM +0200, Miroslav Lichvar wrote:
> While trying some modifications in the delay/offset calculation I noticed
> including both "tlv.h" and <math.h> results in a conflict in the DOMAIN macro.
> Should we fix that?

Yes, I think so.
 
> cc -Wall -DVER=1.4-00061-gd95b9f9-dirty  -D_GNU_SOURCE -DHAVE_CLOCK_ADJTIME 
> -DHAVE_ONESTEP_SYNC     -c -o clock.o clock.c
> In file included from msg.h:29:0,
>                  from transport.h:27,
>                  from config.h:26,
>                  from clock.h:25,
>                  from bmc.h:23,
>                  from clock.c:27:
> tlv.h:62:0: warning: "DOMAIN" redefined [enabled by default]
>  #define DOMAIN      0x2007
>  ^
> In file included from clock.c:24:0:
> /usr/include/math.h:345:0: note: this is the location of the previous 
> definition
>  # define DOMAIN  1
>  ^

Talk about using up common words from the name space:

/* Types of exceptions in the `type' field.  */
# define DOMAIN         1
# define SING           2
# define OVERFLOW       3
# define UNDERFLOW      4
# define TLOSS          5
# define PLOSS          6

Oh, well. First come, first serve, and math.h came before.

Thanks,
Richard



------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to