Ethereal-dev: Re: [Ethereal-dev] Deprecating asn1.[hc]

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

From: Guy Harris <gharris@xxxxxxxxx>
Date: Wed, 29 Sep 2004 00:58:46 -0700
Joerg Mayer wrote:
IIRC there was a discussion a while ago that asn1.[hc] should not be used
any more for new projects and that one day dissectors using the old interface
should be migrated. How about adding a #warning to asn1.h telling potential
users about this?
>
It might go like this, but I don't know about portability

Yup, that's the problem - it's not in ANSI C. It'd have to be protected with

	#ifdef __GNUC__

and

	#endif

and it'd only give a warning if you compiled with GCC. Perhaps some other compilers implement it and define something, so they could be added to the #ifdef.