summaryrefslogtreecommitdiff
path: root/lib/common/TemporaryDirectory.h
blob: 62010f7996cd64cb7e9d8ad370d516b85b5a9f53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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