blob: 5e098d4671909381d17a654c337ca4e445f6e797 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef __LUA_RAPIDJSION_FILE_HPP__
#define __LUA_RAPIDJSION_FILE_HPP__
#include <cstdio>
namespace file
{
inline FILE* open(const char* filename, const char* mode)
{
#if WIN32
FILE* fp = nullptr;
fopen_s(&fp, filename, mode);
return fp;
#else
return fopen(filename, mode);
#endif
}
}
#endif
|