[RFC] msvcrt: defines break C++ code
Dimitrie O. Paun
dpaun at rogers.com
Thu Jan 9 17:35:26 CST 2003
Folks,
We have a lot of code in msvcrt headers like so:
#define umask _umask
#define unlink _unlink
#define write _write
This breaks C++ that define a write method in a header,
and then implement it like so:
#include <io.h>
void MyClass::write(...) { write(...); }
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?
--
Dimi.
More information about the wine-devel
mailing list