File tree 3 files changed +18
-18
lines changed
3 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -40,22 +40,22 @@ static NativeMethods_V4L2()
40
40
{
41
41
case "x86_64" :
42
42
case "amd64" :
43
- Interop = new NativeMethods_V4L2_Interop_x86_64 ( ) ;
44
- break ;
45
43
case "i686" :
46
44
case "i586" :
47
45
case "i486" :
48
46
case "i386" :
49
- Interop = new NativeMethods_V4L2_Interop_i686 ( ) ;
47
+ Interop = IntPtr . Size == 8 ?
48
+ new NativeMethods_V4L2_Interop_x86_64 ( ) :
49
+ new NativeMethods_V4L2_Interop_i686 ( ) ;
50
50
break ;
51
51
case "aarch64" :
52
- Interop = new NativeMethods_V4L2_Interop_aarch64 ( ) ;
53
- break ;
54
52
case "armv9l" :
55
53
case "armv8l" :
56
54
case "armv7l" :
57
55
case "armv6l" :
58
- Interop = new NativeMethods_V4L2_Interop_armv7l ( ) ;
56
+ Interop = IntPtr . Size == 8 ?
57
+ new NativeMethods_V4L2_Interop_aarch64 ( ) :
58
+ new NativeMethods_V4L2_Interop_armv7l ( ) ;
59
59
break ;
60
60
case "mips" :
61
61
case "mipsel" :
Original file line number Diff line number Diff line change @@ -748,22 +748,22 @@ switch (buf.machine)
748
748
{
749
749
case " x86_64" :
750
750
case " amd64" :
751
- Interop = new NativeMethods_V4L2_Interop_x86_64 ();
752
- break ;
753
751
case " i686" :
754
752
case " i586" :
755
753
case " i486" :
756
754
case " i386" :
757
- Interop = new NativeMethods_V4L2_Interop_i686 ();
755
+ Interop = IntPtr .Size == 8 ?
756
+ new NativeMethods_V4L2_Interop_x86_64 () :
757
+ new NativeMethods_V4L2_Interop_i686 ();
758
758
break ;
759
759
case " aarch64" :
760
- Interop = new NativeMethods_V4L2_Interop_aarch64 ();
761
- break ;
762
760
case " armv9l" :
763
761
case " armv8l" :
764
762
case " armv7l" :
765
763
case " armv6l" :
766
- Interop = new NativeMethods_V4L2_Interop_armv7l ();
764
+ Interop = IntPtr .Size == 8 ?
765
+ new NativeMethods_V4L2_Interop_aarch64 () :
766
+ new NativeMethods_V4L2_Interop_armv7l ();
767
767
break ;
768
768
case " mips" :
769
769
case " mipsel" :
Original file line number Diff line number Diff line change @@ -683,22 +683,22 @@ switch (buf.machine)
683
683
{
684
684
case " x86_64" :
685
685
case " amd64" :
686
- Interop = new NativeMethods_V4L2_Interop_x86_64 ();
687
- break ;
688
686
case " i686" :
689
687
case " i586" :
690
688
case " i486" :
691
689
case " i386" :
692
- Interop = new NativeMethods_V4L2_Interop_i686 ();
690
+ Interop = IntPtr .Size == 8 ?
691
+ new NativeMethods_V4L2_Interop_x86_64 () :
692
+ new NativeMethods_V4L2_Interop_i686 ();
693
693
break ;
694
694
case " aarch64" :
695
- Interop = new NativeMethods_V4L2_Interop_aarch64 ();
696
- break ;
697
695
case " armv9l" :
698
696
case " armv8l" :
699
697
case " armv7l" :
700
698
case " armv6l" :
701
- Interop = new NativeMethods_V4L2_Interop_armv7l ();
699
+ Interop = IntPtr .Size == 8 ?
700
+ new NativeMethods_V4L2_Interop_aarch64 () :
701
+ new NativeMethods_V4L2_Interop_armv7l ();
702
702
break ;
703
703
case " mips" :
704
704
case " mipsel" :
You can’t perform that action at this time.
0 commit comments