diff --git a/src/kernel/config.c b/src/kernel/config.c index 80e949215..f33303ead 100644 --- a/src/kernel/config.c +++ b/src/kernel/config.c @@ -599,13 +599,6 @@ void kernel_done(void) translation_done(); } -#ifndef HAVE_STRDUP -char *_strdup(const char *s) -{ - return strcpy((char *)malloc(sizeof(char) * (strlen(s) + 1)), s); -} -#endif - bool rule_stealth_other(void) { static int rule, config; diff --git a/src/platform.h b/src/platform.h index 9f4fca3db..722ab0b5c 100644 --- a/src/platform.h +++ b/src/platform.h @@ -27,6 +27,9 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #define USE_AUTOCONF #ifdef _MSC_VER +# define HAVE_STDBOOL_H +# define HAVE_DIRECT__MKDIR +# define HAVE__ACCESS # define VC_EXTRALEAN # define WIN32_LEAN_AND_MEAN #pragma warning(push) @@ -129,7 +132,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #if defined(HAVE_STDBOOL_H) # include #else -# if ! HAVE__BOOL +# ifndef HAVE__BOOL # ifdef __cplusplus typedef bool _Bool; # else diff --git a/storage b/storage index 2117191d4..18cc3bb8f 160000 --- a/storage +++ b/storage @@ -1 +1 @@ -Subproject commit 2117191d4ad75e1eb14809878bc71d15b20a5d86 +Subproject commit 18cc3bb8f8906237915eb31c9899f95340318087