[svn-r2917] Purpose:

Bug fix
Description:
	Namespace wasn't being detected properly.
Solution:
	Changed it to do it properly (not putting the main() function in
	the namespace);
Platforms tested:
	Linux
This commit is contained in:
Bill Wendling 2000-11-15 11:23:21 -05:00
parent 927e5beba7
commit 8d6ec211c1
2 changed files with 6 additions and 6 deletions

6
c++/configure vendored
View File

@ -1832,11 +1832,11 @@ extern "C" void exit(int);
using namespace std;
namespace H5 {
int main(void) { return 0; }
int fnord;
}
int main(void) { fnord = 37; return 0; }
EOF
if { (eval echo configure:1842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then

View File

@ -229,10 +229,10 @@ AC_TRY_RUN([
using namespace std;
namespace H5 {
int main(void) { return 0; }
int fnord;
}
int main(void) { fnord = 37; return 0; }
], [
echo yes
], [