adobe / adobe/XMP-Toolkit-SDK

Compiler error on MAC

Open
#115 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
262
Forks
110
PR merge metrics
No merged PRs in 30d

Description

external/XMP-Toolkit-SDK/XMPFiles/source/FormatSupport/ID3_Support.cpp:21:9: error: 'MIN' macro redefined [-Werror,-Wmacro-redefined]
21 | #define MIN(a,b) ((a) < (b) ? (a) : (b))
| ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/sys/param.h:215:9: note: previous definition is here
215 | #define MIN(a, b) (((a)<(b))?(a):(b))
| ^
1 error generated.

Contributor guide

Open the contributing guide

Research direction

Start in external/XMP-Toolkit-SDK/XMPFiles/source/FormatSupport/ID3_Support.cpp at line 21 and reproduce the build with the reported Xcode/macOS SDK. Inspect the local MIN definition alongside the SDK definition and verify that the project builds without the -Wmacro-redefined error on macOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, macos
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.