mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[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:
parent
927e5beba7
commit
8d6ec211c1
6
c++/configure
vendored
6
c++/configure
vendored
@ -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
|
||||
|
@ -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
|
||||
], [
|
||||
|
Loading…
Reference in New Issue
Block a user