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

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

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Tue, 15 Jan 2008 14:11:05 -0500

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?