Procházet zdrojové kódy

Only prototype rust_welcome_string() when it exists.

Nick Mathewson před 6 roky
rodič
revize
5e52beceb0
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/or/main.c

+ 2 - 0
src/or/main.c

@@ -127,9 +127,11 @@
 
 void evdns_shutdown(int);
 
+#ifdef HAVE_RUST
 // helper function defined in Rust to output a log message indicating if tor is
 // running with Rust enabled. See src/rust/tor_util
 char *rust_welcome_string(void);
+#endif
 
 /********* PROTOTYPES **********/