mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 14:26:30 +03:00
try avoiding duplicat defs
This commit is contained in:
4
build.rs
4
build.rs
@@ -18,9 +18,7 @@ fn add_search_path(p: &str) {
|
|||||||
|
|
||||||
fn build_tools() {
|
fn build_tools() {
|
||||||
let mut config = cc::Build::new();
|
let mut config = cc::Build::new();
|
||||||
config.file("misc.h");
|
config.file("misc.c").compile("libtools.a");
|
||||||
config.file("misc.c");
|
|
||||||
config.compile("libtools.a");
|
|
||||||
|
|
||||||
println!("rerun-if-changed=build.rs");
|
println!("rerun-if-changed=build.rs");
|
||||||
println!("rerun-if-changed=misc.h");
|
println!("rerun-if-changed=misc.h");
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ unsafe extern "C" fn stop_threads(mut context: *mut dc_context_t) {
|
|||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
fn read_cmd() -> String {
|
fn read_cmd() -> String {
|
||||||
print!("> ");
|
print!("> ");
|
||||||
io::stdout().flush();
|
io::stdout().flush().unwrap();
|
||||||
|
|
||||||
let mut input = String::new();
|
let mut input = String::new();
|
||||||
io::stdin().read_line(&mut input).unwrap();
|
io::stdin().read_line(&mut input).unwrap();
|
||||||
|
|||||||
Reference in New Issue
Block a user