-
Notifications
You must be signed in to change notification settings - Fork 15
Allow building with wineg++ #11
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
base: master
Are you sure you want to change the base?
Conversation
Might help solve jpsdr#10.
|
Hello. |
|
No problem at all @jpsdr. I didn't open PR with any expectation of merger. It just helps users see what patches exist if they search Google, that's all. :-) |
|
@ctrlcctrlv You can do better and wrap compiler-specific code into preprocessor's directive, so it will be ignored for visual studio. That way it definitely will not harm the maintainer's experience with VS. You still have to provide another way (meson, cmake or make) to compile nnedi3 plugin with your additions (setting your directive with -D to enable it). |
|
@DJATOM I have no way to test on VS+MSVC, sorry, which is why I didn't already do that. |
|
Hmm. I guess the macro is |
| #ifndef _MSC_VER | ||
| #define _aligned_malloc(size, alignment) aligned_alloc(size, alignment) | ||
| // Note: This is safe on Unix. see `man 3 aligned_alloc` | ||
| #define _aligned_free(m) free(m) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jpsdr You might be right about this on Windows but using free on aligned memory is fine on Unix.
|
OK @DJATOM I did my best even w/o VisualStudio to fix this PR. |
Might help solve #10.