distdef fix
authorPekka Riikonen <priikone@silcnet.org>
Sun, 10 Dec 2006 16:13:56 +0000 (16:13 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 10 Dec 2006 16:13:56 +0000 (16:13 +0000)
lib/silcasn1/silcasn1.c
lib/silcasn1/silcasn1_i.h

index 33be523fd2df1dfe5a815ee45ec457a3a91cea60..727d61fdc37866a89bd62c1f00fb250941397d6d 100644 (file)
@@ -70,7 +70,7 @@ void silc_asn1_uninit(SilcAsn1 asn1)
   silc_stack_free(asn1->stack2);
 }
 
-#ifdef SILC_DIST_INPLACE
+#if defined(SILC_DEBUG)
 /* Returns string representation of a tag */
 
 const char *silc_asn1_tag_name(SilcAsn1Tag tag)
@@ -151,7 +151,9 @@ const char *silc_asn1_tag_name(SilcAsn1Tag tag)
   }
   return "unknown";
 }
+#endif /* SILC_DEBUG */
 
+#ifdef SILC_DIST_TOOLKIT
 /* Dumps the ASN.1 data block into standard output (stdout). */
 
 SilcBool silc_asn1_dump(SilcAsn1 asn1, SilcBuffer src)
@@ -188,5 +190,4 @@ SilcBool silc_asn1_dump(SilcAsn1 asn1, SilcBuffer src)
 
   return TRUE;
 }
-
-#endif /* SILC_DIST_INPLACE */
+#endif /* SILC_DIST_TOOLKIT */
index 122036755cd221868b10ea791ff237c5fe6a9f5d..bec2cd435f327d9487819ee139925ed2ef5b06e1 100644 (file)
@@ -100,12 +100,14 @@ struct SilcAsn1Object {
     ret_type = (ret_type & 0xffff) & ~0x8000;                          \
   }
 
-#ifdef SILC_DIST_INPLACE
 /* Internal functions */
 
+#if defined(SILC_DEBUG)
 /* Returns string representation of a tag */
 const char *silc_asn1_tag_name(SilcAsn1Tag tag);
+#endif /* SILC_DEBUG */
 
+#ifdef SILC_DIST_INPLACE
 /* Dumps the ASN.1 data block into standard output (stdout). */
 SilcBool silc_asn1_dump(SilcAsn1 asn1, SilcBuffer src);
 #endif /* SILC_DIST_INPLACE */