]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in: Added explicit return type to all C functions.
authorMarkus F.X.J. Oberhumer <markus@oberhumer.com>
Sat, 3 Mar 2001 21:41:11 +0000 (21:41 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Sat, 3 Mar 2001 21:41:11 +0000 (21:41 +0000)
* ltdl.m4: Likewise.

ChangeLog
ltconfig.in
ltdl.m4

index 965876c0734af425ba055da043140c1d0cb5853a..be9c173e9f93d761522252750c89cc9ef4c2a87c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-03-03  Markus F.X.J. Oberhumer <markus@oberhumer.com>,
+           Alexandre Oliva <oliva@lsd.ic.unicamp.br>
+
+       * ltconfig.in: Added explicit return type to all C functions.
+       * ltdl.m4: Likewise.
+
 2001-02-22  Robert Boehne  <rboehne@ricardo-us.com>
 
        * ltconfig.in: Add a test to find the approximate limit
index 2566190a98157c387c18b1b0667cf8b2347c8dbd..b87c4299eafb5e432aa30f9480f1f10dcb395a6b 100755 (executable)
@@ -1,7 +1,8 @@
 #! /bin/sh
 
 # ltconfig - Create a system-specific libtool.
-# Copyright (C) 1996-2000 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
+# Free Software Foundation, Inc.
 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 #
 # This file is free software; you can redistribute it and/or modify it
@@ -1374,7 +1375,7 @@ void nm_test_func(){}
 #ifdef __cplusplus
 }
 #endif
-main(){nm_test_var='a';nm_test_func();return(0);}
+int main(){nm_test_var='a';nm_test_func();return(0);}
 EOF
 
   echo "$progname:@LINENO@: checking if global_symbol_pipe works" >&5
@@ -1904,8 +1905,9 @@ else
 # endif
 #endif
 
-fnord() { int i=42;}
-main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
+void fnord() { int i=42; }
+int main() {
+    void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
     if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
                if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
 
@@ -1977,8 +1979,9 @@ else
 # endif
 #endif
 
-fnord() { int i=42;}
-main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
+void fnord() { int i=42; }
+int main() {
+    void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
     if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
     if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); }
 
diff --git a/ltdl.m4 b/ltdl.m4
index 5971d81778ce3fbf160dc2af7cd82c4d5a80d1f2..a2eb7bec03f1b5a125c9b7f3e0dea44c16c96d49 100644 (file)
--- a/ltdl.m4
+++ b/ltdl.m4
@@ -1,5 +1,5 @@
 ## ltdl.m4 - Configure ltdl for the target system. -*-Shell-script-*-
-## Copyright (C) 1999-2000 Free Software Foundation, Inc.
+## Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
 ##
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -467,8 +467,9 @@ if test x"$ac_cv_sys_symbol_underscore" = xyes; then
 # endif
 #endif
 
-fnord() { int i=42;}
-main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
+void fnord() { int i=42;}
+int main() {
+    void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
     if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
               if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); }
 ],     libltdl_cv_need_uscore=no, libltdl_cv_need_uscore=yes,