1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-03 03:30:06 +00:00
JUCE/modules
brothatza f6e728e878 juce_core: guard juce_NewLine.h with #pragma once to prevent MSVC redefinition
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.
2025-09-13 13:33:48 -05:00
..
juce_analytics Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_animation Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_audio_basics Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_audio_devices Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_audio_formats Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_audio_plugin_client Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_audio_processors Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_audio_utils Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_box2d Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_core juce_core: guard juce_NewLine.h with #pragma once to prevent MSVC redefinition 2025-09-13 13:33:48 -05:00
juce_cryptography Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_data_structures Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_dsp Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_events Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_graphics Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_gui_basics Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_gui_extra Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_javascript Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_midi_ci Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_opengl Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_osc Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_product_unlocking Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
juce_video Bump version number to 8.0.9 2025-09-01 14:44:25 +01:00
CMakeLists.txt Javascript: Move javascript implementation into a separate module 2024-11-07 09:53:10 +00:00