42f7de411c52e916786fb158bf6db500866e02db
[swift-upb.git] / compat / util.h
1 /*
2  * util.h
3  *
4  *  Created on: 20-Oct-2009
5  *      Author: arno
6  */
7
8 #ifndef UTIL_H_
9 #define UTIL_H_
10
11 #include <string>
12
13 namespace swift
14 {
15         /**
16          * Return path of temporary directory.
17          *
18          * From http://msdn.microsoft.com/en-us/library/aa364992%28VS.85%29.aspx
19          *
20          * TODO: Unicode... (gets hairy with open() call on Linux. Win32 has _wopen)
21          */
22         std::string gettmpdir(void);
23
24     void print_error(const char* msg);
25     
26 };
27
28 #endif /* UTIL_H_ */