MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY iDefaultOpenW

Function ILAPIENTRY iDefaultOpenW

DevIL/src-IL/src/il_files.cpp:224–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222
223
224ILHANDLE ILAPIENTRY iDefaultOpenW(ILconst_string FileName)
225{
226#ifndef _UNICODE
227 return (ILHANDLE)fopen((char*)FileName, "wb");
228#else
229 // Windows has a different function, _wfopen, to open UTF16 files,
230 // whereas Linux just uses fopen.
231 #ifdef _WIN32
232 return (ILHANDLE)_wfopen(FileName, L"wb");
233 #else
234 return (ILHANDLE)fopen((char*)FileName, "wb");
235 #endif
236#endif//UNICODE
237}
238
239
240void ILAPIENTRY iDefaultCloseW(ILHANDLE Handle)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected