Przeglądaj źródła

Fixes for -Wundef

thanks Willy-JL
MX 1 rok temu
rodzic
commit
89fc133263
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lib/asn1/asn_internal.h

+ 1 - 1
lib/asn1/asn_internal.h

@@ -42,7 +42,7 @@ int get_asn1c_environment_version(void);	/* Run-time version */
  * You may enable or override it.
  */
 #ifndef	ASN_DEBUG	/* If debugging code is not defined elsewhere... */
-#if	ASN_EMIT_DEBUG == 1	/* And it was asked to emit this code... */
+#if defined(ASN_EMIT_DEBUG) && ASN_EMIT_DEBUG == 1	/* And it was asked to emit this code... */
 #if __STDC_VERSION__ >= 199901L
 #ifdef	ASN_THREAD_SAFE
 /* Thread safety requires sacrifice in output indentation: