Skip to content

Commit

Permalink
Merge pull request #2 from EmbarkStudios/non-x86-compile
Browse files Browse the repository at this point in the history
Fix _ps_const_ty macro compile on non-x86
  • Loading branch information
bitshifter committed Jun 4, 2019
2 parents 696ee8c + 3402bad commit 62a2cc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/f32/funcs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use super::x86_utils::UnionCast;

macro_rules! _ps_const_ty {
($name:ident, $field:ident, $x:expr) => {
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
const $name: UnionCast = UnionCast {
$field: [$x, $x, $x, $x],
};
Expand Down

0 comments on commit 62a2cc9

Please sign in to comment.