Minor corrections for compiling under macOS High Sierra (10.13.5) using
the stock compiler Apple LLVM version 9.1.0 (clang-902.0.39.2)
This commit is contained in:
parent
e01e16c943
commit
6aba1630ed
4 changed files with 14 additions and 0 deletions
|
@ -11,6 +11,7 @@ EXE_INC = \
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lincompressibleRASModels \
|
-lincompressibleRASModels \
|
||||||
-lincompressibleTransportModels \
|
-lincompressibleTransportModels \
|
||||||
|
-lincompressibleTurbulenceModel \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-loversetMesh \
|
-loversetMesh \
|
||||||
-llduSolvers
|
-llduSolvers
|
||||||
|
|
|
@ -11,6 +11,7 @@ EXE_INC = \
|
||||||
EXE_LIBS = \
|
EXE_LIBS = \
|
||||||
-lincompressibleRASModels \
|
-lincompressibleRASModels \
|
||||||
-lincompressibleTransportModels \
|
-lincompressibleTransportModels \
|
||||||
|
-lincompressibleTurbulenceModel \
|
||||||
-lfiniteVolume \
|
-lfiniteVolume \
|
||||||
-loversetMesh \
|
-loversetMesh \
|
||||||
-llduSolvers
|
-llduSolvers
|
||||||
|
|
|
@ -69,6 +69,10 @@ bool read(const char*, uint64_t&);
|
||||||
Istream& operator>>(Istream&, uint64_t&);
|
Istream& operator>>(Istream&, uint64_t&);
|
||||||
Ostream& operator<<(Ostream&, const uint64_t);
|
Ostream& operator<<(Ostream&, const uint64_t);
|
||||||
|
|
||||||
|
#if WM_ARCH_OPTION == 64 && darwin && __clang__
|
||||||
|
Ostream& operator<<(Ostream&, const uintptr_t);
|
||||||
|
#endif
|
||||||
|
|
||||||
//- Template specialization for pTraits<uint64_t>
|
//- Template specialization for pTraits<uint64_t>
|
||||||
template<>
|
template<>
|
||||||
class pTraits<uint64_t>
|
class pTraits<uint64_t>
|
||||||
|
|
|
@ -98,5 +98,13 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const uint64_t i)
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if WM_ARCH_OPTION == 64 && darwin && __clang__
|
||||||
|
Foam::Ostream& Foam::operator<<(Ostream& os, const uintptr_t i)
|
||||||
|
{
|
||||||
|
os.write(label(i));
|
||||||
|
os.check("Ostream& operator<<(Ostream&, const uintptr_t)");
|
||||||
|
return os;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
Reference in a new issue