diff options
Diffstat (limited to 'util/goodies.h')
-rw-r--r-- | util/goodies.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/util/goodies.h b/util/goodies.h index 7a68682aa7a..a0bf512f355 100644 --- a/util/goodies.h +++ b/util/goodies.h @@ -307,5 +307,14 @@ namespace mongo { return i; return -1; } + +#if !defined(_WIN32) + typedef int HANDLE; + inline void strcpy_s(char *dst, unsigned len, const char *src) { + strcpy(dst, src); + } +#else + typedef void *HANDLE; +#endif } // namespace mongo |