mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
On Windows/MSVC, our amalgamated build path can see juce_NewLine.h twice (via juce_core.cpp and juce_String.cpp), causing duplicate definitions of juce::NewLine and related operators (C2011/C2084). This breaks clean debug builds and can block launching. Change - Add `#pragma once` at the start of `text/juce_NewLine.h`. Rationale - Consistent with other JUCE headers using single-include guards. - No ABI/runtime behavior change; header-only fix. - MSVC/Clang/GCC all support `#pragma once`. Impact - Fixes duplicate definition errors on MSVC. - Unblocks stable Debug/Release builds of the VST3/Standalone targets. Tested - VS 2022 Build Tools 17.14, MSVC 19.44 - CMake 4.1.1 - Builds: vs2022-debug-out, vs2022-release-out - Targets: Standalone + VST3 Risk - Minimal; compile-time only. Upstream-Status - Local vendor patch; suitable for an upstream PR if maintainers prefer a traditional include guard. |
||
|---|---|---|
| .. | ||
| containers | ||
| detail | ||
| files | ||
| json | ||
| logging | ||
| maths | ||
| memory | ||
| misc | ||
| native | ||
| network | ||
| serialisation | ||
| streams | ||
| system | ||
| text | ||
| threads | ||
| time | ||
| unit_tests | ||
| xml | ||
| zip | ||
| juce_core.cpp | ||
| juce_core.h | ||
| juce_core.mm | ||
| juce_core_CompilationTime.cpp | ||