fix VS 2015 build

This commit is contained in:
Enno Rehling 2016-11-26 07:04:18 +01:00
parent 14b5c0f922
commit 7870b63655
3 changed files with 5 additions and 9 deletions

View File

@ -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;

View File

@ -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 <stdbool.h>
#else
# if ! HAVE__BOOL
# ifndef HAVE__BOOL
# ifdef __cplusplus
typedef bool _Bool;
# else

@ -1 +1 @@
Subproject commit 2117191d4ad75e1eb14809878bc71d15b20a5d86
Subproject commit 18cc3bb8f8906237915eb31c9899f95340318087