NNEDI3 icon indicating copy to clipboard operation
NNEDI3 copied to clipboard

Allow building with wineg++

Open ctrlcctrlv opened this issue 2 years ago • 6 comments

Might help solve #10.

ctrlcctrlv avatar Jan 30 '23 15:01 ctrlcctrlv

Hello. I will not merge the PR, some of it break my VS build. "aligned_alloc" doesn't exist, and "_aligned_free" is mandatory when an "_aligned_malloc" is made, you must use it, and not just "free". Also, i think "strncasecmp" doesn't exist (with VS). It also involve changes in the avisynth include files, made changes in the avisynth include files validate with avs devs. As when i update these files i just replace them with the new version i got from avs+ github. Don't realy want to put this kind of changes. My advice : create your own github version cloning this, and then apply your patch.

jpsdr avatar Jan 30 '23 20:01 jpsdr

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 avatar Jan 31 '23 03:01 ctrlcctrlv

@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 avatar Jan 31 '23 09:01 DJATOM

@DJATOM I have no way to test on VS+MSVC, sorry, which is why I didn't already do that.

ctrlcctrlv avatar Feb 01 '23 10:02 ctrlcctrlv

Hmm. I guess the macro is _MSC_VER.

ctrlcctrlv avatar Feb 01 '23 10:02 ctrlcctrlv

OK @DJATOM I did my best even w/o VisualStudio to fix this PR.

ctrlcctrlv avatar Feb 01 '23 11:02 ctrlcctrlv