contrib: pthreads: Don't use x86 inline asm on non-x86 platforms
[vlc.git] / contrib / src / pthreads / x86-inline-asm.patch
1 diff -u pthreads-orig/implement.h pthreads/implement.h
2 --- pthreads-orig/implement.h   2012-03-18 07:11:43.000000000 +0200
3 +++ pthreads/implement.h        2018-01-10 14:53:53.596756881 +0200
4 @@ -746,7 +746,7 @@
5   *
6   * The above aren't available in Mingw32 as of gcc 4.5.2 so define our own.
7   */
8 -#if defined(__GNUC__)
9 +#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
10  # if defined(_WIN64)
11  # define PTW32_INTERLOCKED_COMPARE_EXCHANGE_64(location, value, comparand)    \
12      ({                                                                     \