Ethereal-dev: [Ethereal-dev] Conversion of @foo@ macros in config.h.win32

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Bryan Miller" <millerb@xxxxxxx>
Date: Thu, 11 Nov 2004 16:58:41 -0800
I'm a UNIX developer by trade so forgive me if this Windows make
question is a FAQ.

I notice that the macros in config.h.win32 such as 

@HAVE_LIBPCAP@

are converted to 

^#DEFINE HAVE_LIBPCAP 1

in the generation of config.h.  What is the rationale in using the ^#
(literal #) for these defines when the other defines in config.h are
simply #DEFINE?

My reason for asking is that this construct blows up a couple of
different Windows make tools including Opus make (omake) and some
versions of nmake.

Two questions:

1) Is is necessary?
2) Where does the translation from "@foo@" to "^#DEFINE foo 1" occur?

Cheers,
Bryan