mirror of
https://github.com/g-truc/glm.git
synced 2024-11-15 06:24:34 +00:00
20 lines
355 B
Plaintext
20 lines
355 B
Plaintext
|
#pragma once
|
||
|
|
||
|
#include <glm/simd/platform.h>
|
||
|
|
||
|
namespace gli{
|
||
|
namespace detail
|
||
|
{
|
||
|
inline FILE* open_file(const char *Filename, const char *Mode)
|
||
|
{
|
||
|
# if GLM_COMPILER & GLM_COMPILER_VC
|
||
|
FILE *File = nullptr;
|
||
|
fopen_s(&File, Filename, Mode);
|
||
|
return File;
|
||
|
# else
|
||
|
return std::fopen(Filename, Mode);
|
||
|
# endif
|
||
|
}
|
||
|
}//namespace detail
|
||
|
}//namespace gli
|