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_analytics | ||
| juce_animation | ||
| juce_audio_basics | ||
| juce_audio_devices | ||
| juce_audio_formats | ||
| juce_audio_plugin_client | ||
| juce_audio_processors | ||
| juce_audio_utils | ||
| juce_box2d | ||
| juce_core | ||
| juce_cryptography | ||
| juce_data_structures | ||
| juce_dsp | ||
| juce_events | ||
| juce_graphics | ||
| juce_gui_basics | ||
| juce_gui_extra | ||
| juce_javascript | ||
| juce_midi_ci | ||
| juce_opengl | ||
| juce_osc | ||
| juce_product_unlocking | ||
| juce_video | ||
| CMakeLists.txt | ||