Darwing porting change
This commit is contained in:
parent
4bc8cba689
commit
f3f7bbbe7c
2 changed files with 6 additions and 2 deletions
|
@ -68,13 +68,13 @@ bool Foam::dlLibraryTable::open(const fileName& functionLibName)
|
||||||
{
|
{
|
||||||
if (functionLibName.size())
|
if (functionLibName.size())
|
||||||
{
|
{
|
||||||
void* functionLibPtr =
|
void* functionLibPtr =
|
||||||
dlopen(functionLibName.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
dlopen(functionLibName.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
||||||
|
|
||||||
#ifdef darwin
|
#ifdef darwin
|
||||||
if(!functionLibPtr && functionLibName.ext()=="so") {
|
if(!functionLibPtr && functionLibName.ext()=="so") {
|
||||||
fileName lName=functionLibName.lessExt()+".dylib";
|
fileName lName=functionLibName.lessExt()+".dylib";
|
||||||
functionLibPtr =
|
functionLibPtr =
|
||||||
dlopen(lName.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
dlopen(lName.c_str(), RTLD_LAZY|RTLD_GLOBAL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -43,6 +43,10 @@ SourceFiles
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
# include "mgridgen.h"
|
# include "mgridgen.h"
|
||||||
|
# ifdef darwin
|
||||||
|
# undef FALSE
|
||||||
|
# undef TRUE
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue