diff options
author | Rechi <Rechi@users.noreply.github.com> | 2018-11-26 10:17:30 +0100 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2018-11-26 10:17:30 +0100 |
commit | 628082c20fbeeaa806b391fd9a3b70d415a8e848 (patch) | |
tree | 046b269d2b15221006d43c147eb64a0e3a6c801c | |
parent | 57518d6c308c1c9a0f2d0cff54a3314cd07329c9 (diff) |
[cleanup] remove code for VS lower than 14.0 (2015)
-rw-r--r-- | xbmc/cores/DllLoader/exports/emu_msvcrt.cpp | 60 | ||||
-rw-r--r-- | xbmc/cores/DllLoader/exports/emu_msvcrt.h | 5 |
2 files changed, 0 insertions, 65 deletions
diff --git a/xbmc/cores/DllLoader/exports/emu_msvcrt.cpp b/xbmc/cores/DllLoader/exports/emu_msvcrt.cpp index aea3242ad0..5546f6ecdc 100644 --- a/xbmc/cores/DllLoader/exports/emu_msvcrt.cpp +++ b/xbmc/cores/DllLoader/exports/emu_msvcrt.cpp @@ -2043,66 +2043,6 @@ extern "C" #endif } -#if _MSC_VER < 1900 - int dll_filbuf(FILE *fp) - { - if (fp == NULL) - return EOF; - - if(IS_STD_STREAM(fp)) - return EOF; - - CFile* pFile = g_emuFileWrapper.GetFileXbmcByStream(fp); - if (pFile) - { - unsigned char data; - if(pFile->Read(&data, 1) == 1) - { - pFile->Seek(-1, SEEK_CUR); - return (int)data; - } - else - return EOF; - } -#ifdef TARGET_POSIX - return EOF; -#else - return _filbuf(fp); -#endif - } - - int dll_flsbuf(int data, FILE *fp) - { - if (fp == NULL) - return EOF; - - if(IS_STDERR_STREAM(fp) || IS_STDOUT_STREAM(fp)) - { - CLog::Log(LOGDEBUG, "dll_flsbuf() - %c", data); - return data; - } - - if(IS_STD_STREAM(fp)) - return EOF; - - CFile* pFile = g_emuFileWrapper.GetFileXbmcByStream(fp); - if (pFile) - { - pFile->Flush(); - unsigned char c = (unsigned char)data; - if(pFile->Write(&c, 1) == 1) - return data; - else - return EOF; - } -#ifdef TARGET_POSIX - return EOF; -#else - return _flsbuf(data, fp); -#endif - } - -#endif // this needs to be wrapped, since dll's have their own file // descriptor list, but we always use app's list with our wrappers int __cdecl dll_open_osfhandle(intptr_t _OSFileHandle, int _Flags) diff --git a/xbmc/cores/DllLoader/exports/emu_msvcrt.h b/xbmc/cores/DllLoader/exports/emu_msvcrt.h index 7319240036..eb30c44f09 100644 --- a/xbmc/cores/DllLoader/exports/emu_msvcrt.h +++ b/xbmc/cores/DllLoader/exports/emu_msvcrt.h @@ -151,11 +151,6 @@ extern "C" #endif int dll_setvbuf(FILE *stream, char *buf, int type, size_t size); -#if _MSC_VER < 1900 - int dll_filbuf(FILE *fp); - int dll_flsbuf(int data, FILE*fp); -#endif - #if defined(TARGET_ANDROID) volatile int * __cdecl dll_errno(void); #elif defined(TARGET_POSIX) |