From: Markus F.X.J. Oberhumer Date: Sat, 3 Mar 2001 21:41:11 +0000 (+0000) Subject: * ltconfig.in: Added explicit return type to all C functions. X-Git-Tag: multi-language-merge-point~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ce684fc34ea4fc4bab807837fdc0375f47c6870;p=thirdparty%2Flibtool.git * ltconfig.in: Added explicit return type to all C functions. * ltdl.m4: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 965876c07..be9c173e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-03-03 Markus F.X.J. Oberhumer , + Alexandre Oliva + + * ltconfig.in: Added explicit return type to all C functions. + * ltdl.m4: Likewise. + 2001-02-22 Robert Boehne * ltconfig.in: Add a test to find the approximate limit diff --git a/ltconfig.in b/ltconfig.in index 2566190a9..b87c4299e 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -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 , 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 5971d8177..a2eb7bec0 100644 --- 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,