CONFIG: make default for allowSpaceInFileName platform dependent
- enable by default on Windows, disable by default on non-Windows.
This commit is contained in:
parent
96ed604849
commit
b01611a126
@ -68,7 +68,8 @@ InfoSwitches
|
||||
allowSystemOperations 1;
|
||||
|
||||
// Allow space character in fileName (use with caution)
|
||||
allowSpaceInFileName 0;
|
||||
// Default: 0 for non-Windows, 1 for Windows
|
||||
//// allowSpaceInFileName 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -36,11 +36,18 @@ License
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
const char* const Foam::fileName::typeName = "fileName";
|
||||
|
||||
int Foam::fileName::debug(Foam::debug::debugSwitch(fileName::typeName, 0));
|
||||
|
||||
int Foam::fileName::allowSpaceInFileName
|
||||
(
|
||||
#ifdef _WIN32
|
||||
Foam::debug::infoSwitch("allowSpaceInFileName", 1)
|
||||
#else
|
||||
Foam::debug::infoSwitch("allowSpaceInFileName", 0)
|
||||
#endif
|
||||
);
|
||||
|
||||
const Foam::fileName Foam::fileName::null;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user