[librsvg: 1/13] rsvg-convert: fix missing imports for win32




commit 3e7ab8f92c2d5aa256db2d1fca8cfe414de26a3b
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Apr 6 15:25:08 2021 -0500

    rsvg-convert: fix missing imports for win32

 src/bin/rsvg-convert.rs | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/bin/rsvg-convert.rs b/src/bin/rsvg-convert.rs
index bc6a8517..aa69b562 100644
--- a/src/bin/rsvg-convert.rs
+++ b/src/bin/rsvg-convert.rs
@@ -8,10 +8,17 @@ use gio::{Cancellable, FileCreateFlags, FileExt, InputStream, OutputStream};
 use gio::{UnixInputStream, UnixOutputStream};
 
 #[cfg(windows)]
-use std::io;
+mod windows_imports {
+    pub use std::io;
+    pub use std::os::windows::io::AsRawHandle;
+    pub use libc::c_void;
+    pub use glib_sys::gboolean;
+    pub use gio_sys::{GInputStream, GOutputStream};
+    pub use glib::translate::*;
+}
 
 #[cfg(windows)]
-use std::os::windows::io::AsRawHandle;
+use self::windows_imports::*
 
 use librsvg::rsvg_convert_only::{LegacySize, PathOrUrl};
 use librsvg::{CairoRenderer, Color, Loader, Parse, RenderingError};


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]