Fix the windows build

Signed-off-by: Dimitris Zervas <dzervas@dzervas.gr>
This commit is contained in:
Dimitris Zervas
2024-04-16 19:20:45 +03:00
parent 936080b4e8
commit a706f1d890
4 changed files with 5 additions and 3 deletions

View File

@ -6,10 +6,8 @@ pub use injector::attach_self;
// During testing we compile a debug binary without `test`.
// Enabling `ctor` during testing would hook the test runner and break it.
#[cfg(all(unix, not(test)))]
pub mod loader_unix;
#[cfg(all(windows, not(test)))]
pub mod loader_windows;
#[cfg(all(windows, not(test)))]
pub use loader_windows::DllMain;