We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 637a2e1 commit 8e90994Copy full SHA for 8e90994
uefi/src/proto/shim/mod.rs
@@ -45,7 +45,12 @@ pub struct Hashes {
45
46
// These macros set the correct calling convention for the Shim protocol methods.
47
48
-#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
+#[cfg(target_arch = "x86")]
49
+macro_rules! shim_function {
50
+ (fn $args:tt -> $return_type:ty) => (extern "cdecl" fn $args -> $return_type)
51
+}
52
+
53
+#[cfg(target_arch = "x86_64")]
54
macro_rules! shim_function {
55
(fn $args:tt -> $return_type:ty) => (extern "sysv64" fn $args -> $return_type)
56
}
0 commit comments