diff options
author | Akira TAGOH <akira@tagoh.org> | 2012-11-23 16:44:24 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2012-11-23 16:44:24 +0900 |
commit | 616ec7c0fc816b4aa293009f56f75a708c34ae5a (patch) | |
tree | 9aeeec767122a3aa565da0b4da10956543d3c92b | |
parent | 2c6feaaa6afe18f969df24f7acf1954013362130 (diff) |
Fix typos
-rw-r--r-- | configure.ac | 7 | ||||
-rw-r--r-- | liblangtag/lt-atomic.h | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 2a6ec81..e1bf7c3 100644 --- a/configure.ac +++ b/configure.ac @@ -173,8 +173,11 @@ i = __sync_fetch_and_add(&j, 1); __sync_synchronize(); j = __sync_fetch_and_sub(&i, 1); return j; - ]])], [AC_MSG_ERROR([liblangtag has to be built with -march=i486 or later.])] - [lt_cv_has_atomic=no])]) + ]])], [AC_MSG_ERROR([liblangtag has to be built with -march=i486 or later.])]) + # the above code is just to inform the flag is required to be built. + # so regardless of that, we deal with no-atomic-function here. + CFLAGS="$_save_cflags" + lt_cv_has_atomic=no]) ]) if test "x$lt_cv_has_atomic" = "xyes"; then AC_DEFINE(LT_HAVE_ATOMIC_BUILTINS, 1, [Have buit-in atomic functions]) diff --git a/liblangtag/lt-atomic.h b/liblangtag/lt-atomic.h index 64a57b0..8b5fd00 100644 --- a/liblangtag/lt-atomic.h +++ b/liblangtag/lt-atomic.h @@ -93,7 +93,7 @@ lt_atomic_int_dec_and_test(volatile int *v) { lt_bool_t retval; - lt_return_if_fail (v != NULL, FALSE); + lt_return_val_if_fail (v != NULL, FALSE); pthread_mutex_lock(&__lt_atomic_lock); retval = --(*v) == 0; |