Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix linking errors with some compilers when MM:S plugins call function in tier1 interface.h. #34
Currently, if any MM:S plugin (using the PLUGIN_EXPOSE macro) statically links Valve's tier1 library, and makes calls to any of the functions from interface.h/cpp in tier1, some linkers will throw an error due to the CreateInterface export being defined twice.
In this case, there's no reason why we can't use tier1's CreateInterface implementation if it's available. Since we already require the Source SDK by default for MM:S plugins, we can use it in that case. If the META_NO_HL2SDK is defined, we can use the existing implementation.