CONFIG: make default for allowSpaceInFileName platform dependent

- enable by default on Windows, disable by default on non-Windows.
This commit is contained in:
Mark Olesen 2019-06-13 14:01:08 +02:00 committed by Andrew Heather
parent 96ed604849
commit b01611a126
2 changed files with 9 additions and 1 deletions

View File

@ -68,7 +68,8 @@ InfoSwitches
allowSystemOperations 1; allowSystemOperations 1;
// Allow space character in fileName (use with caution) // Allow space character in fileName (use with caution)
allowSpaceInFileName 0; // Default: 0 for non-Windows, 1 for Windows
//// allowSpaceInFileName 0;
} }

View File

@ -36,11 +36,18 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
const char* const Foam::fileName::typeName = "fileName"; const char* const Foam::fileName::typeName = "fileName";
int Foam::fileName::debug(Foam::debug::debugSwitch(fileName::typeName, 0)); int Foam::fileName::debug(Foam::debug::debugSwitch(fileName::typeName, 0));
int Foam::fileName::allowSpaceInFileName int Foam::fileName::allowSpaceInFileName
( (
#ifdef _WIN32
Foam::debug::infoSwitch("allowSpaceInFileName", 1)
#else
Foam::debug::infoSwitch("allowSpaceInFileName", 0) Foam::debug::infoSwitch("allowSpaceInFileName", 0)
#endif
); );
const Foam::fileName Foam::fileName::null; const Foam::fileName Foam::fileName::null;