mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 09:20:39 +01:00
Changes based on comments of Geoff Worboys using VS2005 Express
This commit is contained in:
parent
0a770b2493
commit
e961198c9e
4
extern/icu/source/common/putil.c
vendored
4
extern/icu/source/common/putil.c
vendored
@ -1251,8 +1251,8 @@ uprv_tzname(int n)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if U_TZNAME + 1 != 1
|
||||
return U_TZNAME[n];
|
||||
#ifdef U_TZNAME
|
||||
return U_TZNAME[n];
|
||||
#else
|
||||
return "";
|
||||
#endif
|
||||
|
14
extern/icu/source/io/ufile.c
vendored
14
extern/icu/source/io/ufile.c
vendored
@ -46,8 +46,18 @@ u_finit(FILE *f,
|
||||
int filenum = _fileno(f);
|
||||
if (0 <= filenum && filenum <= 2) {
|
||||
/* stdin, stdout and stderr need to be special cased for Windows 98 */
|
||||
result->fFile = &_iob[_fileno(f)];
|
||||
}
|
||||
|
||||
// this don't compile in VS2005 Express
|
||||
// result->fFile = &_iob[_fileno(f)];
|
||||
//
|
||||
// replace with code below
|
||||
if (filenum == 0)
|
||||
result->fFile = stdin;
|
||||
else if (filenum == 1)
|
||||
result->fFile = stdout;
|
||||
else if (filenum == 2)
|
||||
result->fFile = stderr;
|
||||
}
|
||||
else {
|
||||
result->fFile = f;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user