# Patching third party sources

**URL:** <https://forums.unrealengine.com/t/patching-third-party-sources/2659908>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, question\
**Created:** [September 25, 2025, 8:26pm UTC](https://forums.unrealengine.com/t/patching-third-party-sources/2659908 "2025-09-25T20:26:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qrnch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@qrnch](https://forums.unrealengine.com/u/qrnch)\
**Post date:** [September 25, 2025, 8:26pm UTC](https://forums.unrealengine.com/t/patching-third-party-sources/2659908/1 "2025-09-25T20:26:24Z")

</div>

We have a project that currently only builds successfully on Windows, but we’re trying to get it working on Mac and Linux as well.

One of the plugins we use croaks, on Mac, in a headerfile in `libjpeg-turbo` (which is a `ThirdParty` `Source` in the Engine), because it ends up trying to redefine `DLLEXPORT`. I did a quick-fix where I simply changed `#else` to `#elif !defined(DLLEXPORT)`, which makes the plugin build successfully.

However, I accomplished this by modifying UnrealEngine’s installed files, so if I verify the installation then presumably it’ll yell at me and remove my modification.

If I’ve understood it correctly, for built-in plugins that need modifications one can copy the plugin to the project and it’ll take precedence over the Engine’s version.

Is there any similar mechanism for the Engine’s third party sources? I.e. is there some way I can tell the build system to use `libjpeg-turbo` in the project instead?
