diff options
Diffstat (limited to 'lib/common/TemporaryDirectory.h')
-rwxr-xr-x | lib/common/TemporaryDirectory.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/common/TemporaryDirectory.h b/lib/common/TemporaryDirectory.h new file mode 100755 index 00000000..62010f79 --- /dev/null +++ b/lib/common/TemporaryDirectory.h @@ -0,0 +1,26 @@ +// -------------------------------------------------------------------------- +// +// File +// Name: TemporaryDirectory.h +// Purpose: Location of temporary directory +// Created: 2003/10/13 +// +// -------------------------------------------------------------------------- + +#ifndef TEMPORARYDIRECTORY__H +#define TEMPORARYDIRECTORY__H + +#include <string> + +#ifdef PLATFORM_STATIC_TEMP_DIRECTORY_NAME + // Prefix name with Box to avoid clashing with OS API names + inline std::string BoxGetTemporaryDirectoryName() + { + return std::string(PLATFORM_STATIC_TEMP_DIRECTORY_NAME); + } +#else + non-static temporary directory names not supported yet +#endif + +#endif // TEMPORARYDIRECTORY__H + |