1 | // LAF Base Library |
2 | // Copyright (c) 2021 Igara Studio S.A. |
3 | // Copyright (c) 2001-2016 David Capello |
4 | // |
5 | // This file is released under the terms of the MIT license. |
6 | // Read LICENSE.txt for more information. |
7 | |
8 | #ifndef BASE_FSTREAM_PATH_H_INCLUDED |
9 | #define BASE_FSTREAM_PATH_H_INCLUDED |
10 | #pragma once |
11 | |
12 | #include "base/string.h" |
13 | |
14 | #if LAF_WINDOWS |
15 | #ifdef __MINGW32__ |
16 | #define FSTREAM_PATH(path) (std::string(path).c_str()) |
17 | #else |
18 | #define FSTREAM_PATH(path) (base::from_utf8(path).c_str()) |
19 | #endif |
20 | #else |
21 | #define FSTREAM_PATH(path) (std::string(path).c_str()) |
22 | #endif |
23 | |
24 | #endif |
25 | |