]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltdl.m4 (AC_C_INLINE): No longer required.
authorGary V. Vaughan <gary@gnu.org>
Tue, 24 Apr 2001 23:03:33 +0000 (23:03 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 24 Apr 2001 23:03:33 +0000 (23:03 +0000)
* libltdl/ltdl.c (strdup, strcmp, strchr, strrchr, memcpy, trim,
free_vars):  Revoke inline keyword from declarations.  `static
inline' is not very portable, and in addition Unixware 7.1.1's
compiler says you can't access static variables from inline
functions.
Reported by Peter Eisentraut  <peter_e@gmx.net>

ChangeLog
libltdl/ltdl.c
ltdl.m4

index 54b061a37c503b0baa231994302a8a765db5e201..737980fdedc5ee198918621b01da34383828cf7d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-04-24  Gary V. Vaughan  <gvv@techie.com>
+
+       * ltdl.m4 (AC_C_INLINE): No longer required.
+       * libltdl/ltdl.c (strdup, strcmp, strchr, strrchr, memcpy, trim,
+       free_vars):  Revoke inline keyword from declarations.  `static
+       inline' is not very portable, and in addition Unixware 7.1.1's
+       compiler says you can't access static variables from inline
+       functions.
+       Reported by Peter Eisentraut  <peter_e@gmx.net>
+
 2001-04-24 Albert Chin-A-Young <china@thewrittenword.com>
 
        * ltconfig.in: Handle case where /bin/nm -p outputs multiple
index 8e8f00961e35c378d42855cdabcb76a1ad246ded..872a5701d313084e2dd4be2e7071188b2b82e8fd 100644 (file)
@@ -342,7 +342,7 @@ lt_dlseterror (index)
 #undef strdup
 #define strdup rpl_strdup
 
-static inline char *
+static char *
 strdup(str)
      const char *str;
 {
@@ -366,7 +366,7 @@ strdup(str)
 #undef strcmp
 #define strcmp rpl_strcmp
 
-static inline int
+static int
 strcmp (str1, str2)
      const char *str1;
      const char *str2;
@@ -396,7 +396,7 @@ strcmp (str1, str2)
 #  else
 #    define strchr rpl_strchr
 
-static inline const char*
+static const char*
 strchr(str, ch)
      const char *str;
      int ch;
@@ -419,7 +419,7 @@ strchr(str, ch)
 #  else
 #    define strrchr rpl_strrchr
 
-static inline const char*
+static const char*
 strrchr(str, ch)
      const char *str;
      int ch;
@@ -450,7 +450,7 @@ strrchr(str, ch)
 #  else
 #    define memcpy rpl_memcpy
 
-static inline char *
+static char *
 memcpy (dest, src, size)
      char *dest;
      const char *src;
@@ -1953,7 +1953,7 @@ unload_deplibs(handle)
   return errors;
 }
 
-static inline int
+static int
 trim (dest, str)
      char **dest;
      const char *str;
@@ -1987,7 +1987,7 @@ trim (dest, str)
   return 0;
 }
 
-static inline int
+static int
 free_vars( dlname, oldname, libdir, deplibs)
      char *dlname;
      char *oldname;
diff --git a/ltdl.m4 b/ltdl.m4
index a07e46774a2bde1c83dbb239807fd310f1610887..3030bc81b3ea602a4abe27ee6cc86f00e49e0412 100644 (file)
--- a/ltdl.m4
+++ b/ltdl.m4
@@ -26,7 +26,6 @@ AC_DEFUN(AC_LIB_LTDL,
 [AC_PREREQ(2.13)dnl
 AC_REQUIRE([AC_PROG_CC])dnl
 AC_REQUIRE([AC_C_CONST])dnl
-AC_REQUIRE([AC_C_INLINE])dnl
 
 dnl AC_LIB_LTDL must perform all the checks necessary for compilation
 dnl of the ltdl objects -- including compiler checks (above) and header