"Dimitrie O. Paun" dpaun@rogers.com writes:
If using tchar.h forces you to link in msvcrt, it should be moved to include/msvcrt. Thing is that MinGW supports tchar.h it seems, so we can do one of two things:
- Add conditionals in tchar.h as you suggested to do things differently depending on whether or not we link in msvcrt
- Move the current tchar.h to include/msvcrt, and create a new one to support the MinGW/glibc case.
Alexandre?
tchar.h should not depend on msvcrt IMO, at least not in ASCII mode, so it should use the normal function names without underscores. It's not 100% compatible, but it should still do the right thing, both with and without msvcrt.