forked from mia/Aegisub
Delete stuff for VS 2008
This commit is contained in:
parent
995a8642f0
commit
e668cc45e0
1 changed files with 0 additions and 5 deletions
|
@ -162,12 +162,7 @@ void line_iterator<OutputType>::getline(std::string &str) {
|
|||
|
||||
for (;;) {
|
||||
u.chr = 0;
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1600
|
||||
// This _s version is only available in Visual C++ 2005 and 2008, it was removed in VC 2010
|
||||
std::streamsize read = stream->rdbuf()->_Sgetn_s(u.buf, sizeof(u.buf), width);
|
||||
#else
|
||||
std::streamsize read = stream->rdbuf()->sgetn(u.buf, width);
|
||||
#endif
|
||||
if (read < (std::streamsize)width) {
|
||||
for (int i = 0; i < read; i++) {
|
||||
str += u.buf[i];
|
||||
|
|
Loading…
Reference in a new issue