From b96636984c9af2ef7d775750735d5fe42767a07c Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 25 Jan 2019 13:53:17 +0100 Subject: [PATCH] Workaround an LLVM bug --- src/interrupts.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/interrupts.rs b/src/interrupts.rs index 1a7de0df..8eefc8e0 100644 --- a/src/interrupts.rs +++ b/src/interrupts.rs @@ -1,3 +1,8 @@ +// LLVM throws an error if a function with the +// x86-interrupt calling convention is compiled +// for a Windows system. +#![cfg(not(windows))] + use crate::println; use lazy_static::lazy_static; use x86_64::structures::idt::{ExceptionStackFrame, InterruptDescriptorTable};