Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] adding #ifdefs to asn2wrs .cnf files

From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Tue, 15 Jan 2008 20:49:17 +0100
Hi,
I'm not sure it's possible 
# is considered as a comment
It's probbably better to call a function defined in the template file
instead and do the #if stuff there.
Regards
Anders

-----Ursprungligt meddelande-----
Från: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] För Jeff Morriss
Skickat: den 15 januari 2008 20:11
Till: Wireshark Development
Ämne: [Wireshark-dev] adding #ifdefs to asn2wrs .cnf files


Hi list,

asn1/gsmmap/gsmmap.cnf now contains some Glib-2 specific code (the iconv 
stuff).

So, in order to get it compiling in Glib-1 I wanted to do:

> Index: gsmmap.cnf
> ===================================================================
> --- gsmmap.cnf  (revision 24096)
> +++ gsmmap.cnf  (working copy)
> @@ -360,9 +360,11 @@
>    tvbuff_t     *parameter_tvb;
>    int                  length;
>    guint8               out_len;
> +#if GLIB_MAJOR_VERSION > 2
>    gchar *utf8_text = NULL;
>    GIConv cd;
>    GError *l_conv_error = NULL;
> +#endif
[...]


but asn2wrs seems to simply take out the #if and #endif.

I looked through the (Wiki) documentation and couldn't find any "stop 
processing directives for a while" directives.

Is there a way to solve this?
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev