Revision 2063,
856 bytes
checked in by iwaim, 14 years ago
(diff) |
mozc 0.13.499.102-1
|
-
old
|
new
|
|
51 | 51 | inline int InterlockedCompareExchange(volatile int *target, |
52 | 52 | int new_value, |
53 | 53 | int old_value) { |
| 54 | // chagne required minimum version from 4.1 to 4.4 to avoid |
| 55 | // build error for Vine Linux 5 as a workaround. |
| 56 | // (it has gcc-4.1.2 but march=i386, |
| 57 | // but __sync_val_compare_and_swap needs cpu >= i486) |
54 | 58 | #if defined(__GNUC__) && \ |
55 | | (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) && \ |
| 59 | (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) && \ |
56 | 60 | !defined(__arm__) |
57 | 61 | // Use GCC's extention (Note: ARM GCC doesn't have this function.) |
58 | 62 | // http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Atomic-Builtins.html |
Note: See
TracBrowser
for help on using the repository browser.