Skip to content

mem-win: Disable Windows min/max macros in favor of project solutions#3371

Open
bgoing-micron-oss wants to merge 1 commit into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/no-windows-min-max-macros
Open

mem-win: Disable Windows min/max macros in favor of project solutions#3371
bgoing-micron-oss wants to merge 1 commit into
linux-nvme:masterfrom
Micron-TPG-OSS:bgoing/no-windows-min-max-macros

Conversation

@bgoing-micron-oss
Copy link
Copy Markdown
Contributor

Disables definitions of min/max macros coming from Windows includes. Favors local solutions for min/max definitions isntead.

  • Removes #ifndef guards around min/max in common.h that were added due to Windows default min/max definitions.
  • Updates mem-win.c to use ccan/minmax definitions.

Disables definitions of min/max macros coming from Windows includes.
Favors local solutions for min/max definitions isntead.
- Removes #ifndef guards around min/max in common.h that were added due
to Windows default min/max definitions.
- Updates mem-win.c to use ccan/minmax definitions.

Signed-off-by: Broc Going <bgoing@micron.com>
@bgoing-micron-oss
Copy link
Copy Markdown
Contributor Author

@igaw I found a way to disable the Windows min/max macros that were conflicting with the min/max macros already being defined and used in the project. I've backed out the workaround in common.h, and updated the existing Windows code to use ccan/minmax instead where needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant