bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: check_version


From: Bruno Haible
Subject: Re: check_version
Date: Mon, 18 Jul 2005 14:33:53 +0200
User-agent: KMail/1.5

Simon Josefsson wrote:
> having a AC_DEFINE seem somewhat hackish.

No, why is this odd? Here's what I use in gettext to avoid collisions of
the "lock in libintl" with "lock outside libintl".

  dnl Rename some macros and functions used for locking.
  AH_BOTTOM([
#define glthread_lock_init     libintl_lock_init
#define glthread_lock_lock     libintl_lock_lock
#define glthread_lock_unlock   libintl_lock_unlock
#define glthread_lock_destroy  libintl_lock_destroy
#define glthread_rwlock_init     libintl_rwlock_init
#define glthread_rwlock_rdlock   libintl_rwlock_rdlock
#define glthread_rwlock_wrlock   libintl_rwlock_wrlock
#define glthread_rwlock_unlock   libintl_rwlock_unlock
#define glthread_rwlock_destroy  libintl_rwlock_destroy
#define glthread_recursive_lock_init     libintl_recursive_lock_init
#define glthread_recursive_lock_lock     libintl_recursive_lock_lock
#define glthread_recursive_lock_unlock   libintl_recursive_lock_unlock
#define glthread_recursive_lock_destroy  libintl_recursive_lock_destroy
])

That's what global #defines are good for.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]