Chromium Code Reviews
DescriptionMake Directory::Current() work with unenhanced POSIX getcwd
POSIX says getcwd needs to be passed a pre-allocated
buffer, but many platforms provide an extended version
of getcwd that will allocate a buffer when called with
arguments (NULL, 0).
Display::Current() was depending upon this extended
behavior, which happens to work on Linux and Mac
platforms, but which doesn't work on other POSIX
platforms (such as Android.)
Fixed by using the preprocessor to choose between two
implementations of Display::Current, one of which depends
upon the extended semantics of getcwd, the other of which
only depends upon the standard semantics of getcwd.
BUG=
Committed: https://code.google.com/p/dart/source/detail?r=10309
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|
|||||||||||||||||||