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. |
||
|---|---|---|
| .. | ||
| juce_Base64.cpp | ||
| juce_Base64.h | ||
| juce_CharacterFunctions.cpp | ||
| juce_CharacterFunctions.h | ||
| juce_CharPointer_ASCII.h | ||
| juce_CharPointer_UTF8.h | ||
| juce_CharPointer_UTF8_test.cpp | ||
| juce_CharPointer_UTF16.h | ||
| juce_CharPointer_UTF16_test.cpp | ||
| juce_CharPointer_UTF32.h | ||
| juce_CharPointer_UTF32_test.cpp | ||
| juce_Identifier.cpp | ||
| juce_Identifier.h | ||
| juce_LocalisedStrings.cpp | ||
| juce_LocalisedStrings.h | ||
| juce_NewLine.h | ||
| juce_String.cpp | ||
| juce_String.h | ||
| juce_StringArray.cpp | ||
| juce_StringArray.h | ||
| juce_StringPairArray.cpp | ||
| juce_StringPairArray.h | ||
| juce_StringPool.cpp | ||
| juce_StringPool.h | ||
| juce_StringRef.h | ||
| juce_TextDiff.cpp | ||
| juce_TextDiff.h | ||