diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-03-19 15:13:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-19 15:13:57 -0700 |
commit | 99ab600b192f5971cb76f925f41015c100b44e4d (patch) | |
tree | 9dd75a7fb2911e4b0f541b0f2e1bd67dde3293b6 /portability.h | |
parent | c4b0e2bd57a234f474b061db5b96950bf5a81a5d (diff) | |
parent | 7249af7a9ed911ca76aed069c421bb3d7b55ec3e (diff) |
Merge pull request #568 from gvanem/master
MSVC's strdup() in _DEBUG mode
Diffstat (limited to 'portability.h')
-rw-r--r-- | portability.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/portability.h b/portability.h index d4343e62..179ecd92 100644 --- a/portability.h +++ b/portability.h @@ -88,7 +88,9 @@ extern "C" { #endif #ifdef _MSC_VER + #ifndef _DEBUG #define strdup _strdup + #endif #define sscanf sscanf_s #define setbuf(x, y) \ setvbuf((x), (y), _IONBF, 0) |