D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 8132 - LPTSTR always aliases to LPSTR
Summary: LPTSTR always aliases to LPSTR
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All Windows
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-22 09:56 UTC by Martin Nowak
Modified: 2013-02-05 13:02 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Martin Nowak 2012-05-22 09:56:02 UTC
http://msdn.microsoft.com/en-us/library/dd374131(v=vs.85).aspx

In C this depends on whether UNICODE is set or not. As long as we don't have such a switch LPTSTR shouldn't be declared.
Comment 1 github-bugzilla 2012-05-29 10:09:52 UTC
Commits pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/a9bbb65ab0e69cfc25da76cdc2828af3ba083fcb
fix issue 8132 - LPTSTR always aliases to LPSTR

- set version=UNICODE
- make LPTSTR alias depend on version(UNICODE)
- fix usage of LPTSTR in CreateSemaphoreA/OpenSemaphoreA

https://github.com/D-Programming-Language/druntime/commit/4b59883ba4b4b4f9e80a9c9a26aa7b4dc412657b
Merge pull request #227 from dawgfoto/fix8132

fix issue 8132 - LPTSTR always aliases to LPSTR