Skip to content

Commit

Permalink
win32: avoid warning about using strdup instead of _strdup
Browse files Browse the repository at this point in the history
The POSIX name for this item is deprecated. Instead, use the ISO C++
conformant name: _strdup
  • Loading branch information
nacho committed Oct 15, 2015
1 parent 615fff2 commit 67a61ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/liblmdb/mdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#ifdef _WIN32
#include <malloc.h>
#include <windows.h>
#define strdup _strdup
/** getpid() returns int; MinGW defines pid_t but MinGW64 typedefs it
* as int64 which is wrong. MSVC doesn't define it at all, so just
* don't use it.
Expand Down

0 comments on commit 67a61ed

Please sign in to comment.