]> The Tcpdump Group git mirrors - libpcap/commit
In MSVC debug-mode ('-MDd' or '-MTd'), there is an important warning on
authorGisle Vanem <[email protected]>
Thu, 16 Mar 2017 11:07:02 +0000 (11:07 +0000)
committerGisle Vanem <[email protected]>
Thu, 16 Mar 2017 11:07:02 +0000 (11:07 +0000)
commit9268e8661ffa4fe25bb742699127c711cb6e9e23
treee5bc1e394ac163de4a898de620affd92a6008609
parentfd3868c20d8b989d6bfce697a2e7a2c99cd1f296
In MSVC debug-mode ('-MDd' or '-MTd'), there is an important warning on
the redefinion of 'strdup':
  portability.h(104): warning C4005: 'strdup': macro redefinition
  f:\ProgramFiler-x86\WindowsKits\Include\10.0.10586.0\ucrt\crtdbg.h(319):
    note: see previous definition of 'strdup'

It's definition is:
  #define strdup(s)  _strdup_dbg(s, _NORMAL_BLOCK, __FILE__, __LINE__)

Undoing that in "portability.h" would defeat the purpose of '_DEBUG' mode.
portability.h