diff options
author | David Schleef <ds@schleef.org> | 2005-08-02 21:20:40 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2005-08-02 21:20:40 +0000 |
commit | 96ef0ef7b1eaef65f147ec423139bd2568b735a2 (patch) | |
tree | fa0263ee7560313a768d6fdac8f266f127bfec4e | |
parent | 96d7075a7650bab6e6985b070ff927b9faf09df3 (diff) | |
download | liboil-96ef0ef7b1eaef65f147ec423139bd2568b735a2.tar.gz |
* configure.ac: Define HAVE_LD_UNDERSCORE to indicate whether
or not an underscore is prepended to C symbols.
* liboil/motovec/motovec.c:
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | liboil/motovec/motovec.c | 7 |
3 files changed, 19 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2005-08-02 David Schleef <ds@schleef.org> + + * configure.ac: Define HAVE_LD_UNDERSCORE to indicate whether + or not an underscore is prepended to C symbols. + * liboil/motovec/motovec.c: + 2005-08-01 David Schleef <ds@schleef.org> * configure.ac: use BSD_SOURCE instead of POSIX_C_SOURCE, because diff --git a/configure.ac b/configure.ac index 7878d9d..5f9c6fe 100644 --- a/configure.ac +++ b/configure.ac @@ -137,6 +137,12 @@ AM_CONDITIONAL(HAVE_CPU_IA64, test "x$HAVE_CPU_IA64" = "xyes") AC_C_BIGENDIAN +AC_LTDL_SYMBOL_USCORE +if test x${ac_cv_sys_symbol_underscore} = xyes ; then + AC_DEFINE(HAVE_SYMBOL_UNDERSCORE, 1, [Define if C symbols have leading underscore]) +fi + + AC_FUNC_MMAP() AC_CHECK_LIB(m, rintf, diff --git a/liboil/motovec/motovec.c b/liboil/motovec/motovec.c index d6b0b03..ae0c264 100644 --- a/liboil/motovec/motovec.c +++ b/liboil/motovec/motovec.c @@ -34,8 +34,15 @@ OIL_DECLARE_CLASS(copy_u8); OIL_DECLARE_CLASS(splat_u8_ns); +#ifdef HAVE_LD_UNDERSCORE void *vec_memcpy(void *dest, void *src, int n); void *vec_memset(void *dest, int val, int n); +#else +void *_vec_memcpy(void *dest, void *src, int n); +void *_vec_memset(void *dest, int val, int n); +#define vec_memcpy _vec_memcpy +#define vec_memset _vec_memset +#endif static void copy_u8_motovec (uint8_t *dest, uint8_t *src, int n) |