Skip to content
Snippets Groups Projects
Commit b01611a1 authored by Mark OLESEN's avatar Mark OLESEN Committed by Andrew Heather
Browse files

CONFIG: make default for allowSpaceInFileName platform dependent

- enable by default on Windows, disable by default on non-Windows.
parent 96ed6048
Branches
Tags
No related merge requests found
...@@ -68,7 +68,8 @@ InfoSwitches ...@@ -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;
} }
......
...@@ -36,11 +36,18 @@ License ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment