Skip to content

Commit a70c0e9

Browse files
committed
Fix va_list generation
1 parent 1960813 commit a70c0e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alpm/src/cb.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ extern "C" {
1010
fn vasprintf(str: *const *mut c_char, fmt: *const c_char, args: VaList) -> c_int;
1111
}
1212

13-
#[cfg(not(any(target_arch = "aarch64", target_arch = "arm")))]
13+
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
1414
pub type VaList = *mut __va_list_tag;
15-
#[cfg(any(target_arch = "aarch64", target_arch = "arm"))]
15+
#[cfg(not(any(target_arch = "x86", target_arch = "x86_64")))]
1616
pub type VaList = va_list;
1717

1818
type Cb<T> = UnsafeCell<Option<Box<T>>>;

0 commit comments

Comments
 (0)