Thanks to visit codestin.com
Credit goes to github.com

Skip to content

replace strdup with _strdup in Windows #3

@GrahamAsher

Description

@GrahamAsher

Compilation in Visual Studio 2022 gives this warning:

warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _strdup.

The warning can be removed by adding the line

#define strdup _strdup

to this section of code:

naett/naett.c

Lines 8 to 12 in e44a499

#ifdef _MSC_VER
#define strcasecmp _stricmp
#define min(a,b) (((a)<(b))?(a):(b))
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions