Skip to content
⌘ NSIS Forum Archive

where is strstri in script.cpp defined?

6 posts

PerditionC#

where is strstri in script.cpp defined?

I finally compiled a MinGW build that correctly handled user variables (the .ndata section originally was placed before the imports causing fun havoc), and I am updating my source from a few weeks back before submitting a patch. However, script.cpp now seems to make use of strstri, but I can't seem to find where the function/macro is defined.
I'm probably just overlooking it, but would someone please point out where in the source it is defined.

Thanks,
Jeremy
Spatacoli#
I found that I needed to #include <shlwapi.h> to get today's release to compile. Should I have needed to do that?
PerditionC#
Thanks, I looked in MinGW's shlwapi.h and it does have StrStrI, I was only looking for strstri.
Joost Verburg#edited
Because shlwapi does not exist by default on all Windows versions, I added something else.

It should work fine now.