Skip to content

Fix when using wchar support within an UNICODE project#142

Open
perrykipkerrie wants to merge 1 commit intoDCMTK:masterfrom
perrykipkerrie:master
Open

Fix when using wchar support within an UNICODE project#142
perrykipkerrie wants to merge 1 commit intoDCMTK:masterfrom
perrykipkerrie:master

Conversation

@perrykipkerrie
Copy link

added a fix that modern cmakes can cope with the single 'everything-l…ibrary'
added a fix that prevented the use of the UNICODE preprocessor definition in combination with dcmtk build with wchar filename io support

Regarding post: https://forum.dcmtk.org/viewtopic.php?t=5498

…ibrary'

added a fix that prevented the use of the UNICODE preprocessor definition in combination with dcmtk build with wchar filename io support
if (ownsText)
{
theCondition.theText = strdup(theCondition.theText);
theCondition.theText = _strdup(theCondition.theText);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't _strdup specific for the MS compiler, and strdup is the POSIX standard?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants