undo change
parent
435bba30dd
commit
e7ae576614
|
@ -51,6 +51,18 @@ using namespace Assimp;
|
|||
|
||||
namespace {
|
||||
|
||||
template <size_t sizeOfPointer>
|
||||
inline size_t select_ftell(FILE *file) {
|
||||
return ::ftell(file);
|
||||
}
|
||||
|
||||
template <size_t sizeOfPointer>
|
||||
inline int select_fseek(FILE *file, int64_t offset, int origin) {
|
||||
return ::fseek(file, static_cast<long>(offset), origin);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#if defined _WIN32 && (!defined __GNUC__ || __MSVCRT_VERSION__ >= 0x0601)
|
||||
template <>
|
||||
inline size_t select_ftell<8>(FILE *file) {
|
||||
|
@ -62,18 +74,6 @@ inline int select_fseek<8>(FILE *file, int64_t offset, int origin) {
|
|||
return ::_fseeki64(file, offset, origin);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
template <size_t sizeOfPointer>
|
||||
inline size_t select_ftell(FILE *file) {
|
||||
return ::ftell(file);
|
||||
}
|
||||
|
||||
template <size_t sizeOfPointer>
|
||||
inline int select_fseek(FILE *file, int64_t offset, int origin) {
|
||||
return ::fseek(file, static_cast<long>(offset), origin);
|
||||
}
|
||||
|
||||
#endif // #if defined _WIN32 && (!defined __GNUC__ || __MSVCRT_VERSION__ >= 0x0601)
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Reference in New Issue