Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bug in .vcxpoj files and suggested fix #3297

Closed
irwir opened this issue Apr 30, 2020 · 2 comments · Fixed by #3333
Closed

A bug in .vcxpoj files and suggested fix #3297

irwir opened this issue Apr 30, 2020 · 2 comments · Fixed by #3333
Assignees
Labels

Comments

@irwir
Copy link
Contributor

irwir commented Apr 30, 2020

Description

  • Type: Bug
  • Priority: Minor

Bug

x64|Debug configuration in mbedTLS.vcxproj has an incorrect WIN32 preprocessor definition instead of WIN64.
The macro was never used, but this is still a bug.

OS
Windows

mbed TLS build:
All versions have this bug.


Enhancement

Justification - why does the library need this feature?
MSVC has a number of predefined macros, and project wizards used to add something too.
Search in mbedTLS files reveals that macros WIN32, WIN64 and, _WINDOWS remain unused; these are obsolete. Also, predefined _DEBUG is defined once again in projects, but never used.
Instead, predefined _WIN32 and _WIN64 are used in library code.

Suggested enhancement
Remove unused definitions from scripts and projects; keep relying on predefined macros.
Visual Studio solution has built successfully with these changes in my test.

@paul-elliott-arm
Copy link
Member

Hi!

You are indeed quite correct about debug|x64, and I can easily fix this. However, given you have already done the work for this and your added suggestion, could I suggest you converting your test as a Pull Request, and I can review it from there?

@irwir
Copy link
Contributor Author

irwir commented May 19, 2020

Hi @paul-elliott-arm
Thanks for taking a look.
PR is created; please check additional comment there.

@danh-arm danh-arm added the bug label May 20, 2020
irwir added a commit to irwir/mbedtls that referenced this issue May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants