[RFC] msvcrt: defines break C++ code
Dan Kegel
dank at kegel.com
Thu Jan 9 19:31:41 CST 2003
Dimitrie O. Paun wrote:
> I suggest we turn those defines into inlines, like this:
>
> inline int write(int fd, const void* ptr, unsigned int size) { return _write(fd, ptr, size); }
>
> Any other solutions?
Sure, there are two:
0. use a linker alias for _write
1. actually have a function write() that just jumps to _write
2. actually have a function write() that calls _write
Not sure any of those are better than what you suggest, though.
- Dan
--
Dan Kegel
Linux User #78045
http://www.kegel.com
More information about the wine-devel
mailing list