forked from github/server
fix VS 2015 build
This commit is contained in:
parent
14b5c0f922
commit
7870b63655
|
@ -599,13 +599,6 @@ void kernel_done(void)
|
||||||
translation_done();
|
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)
|
bool rule_stealth_other(void)
|
||||||
{
|
{
|
||||||
static int rule, config;
|
static int rule, config;
|
||||||
|
|
|
@ -27,6 +27,9 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#define USE_AUTOCONF
|
#define USE_AUTOCONF
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
# define HAVE_STDBOOL_H
|
||||||
|
# define HAVE_DIRECT__MKDIR
|
||||||
|
# define HAVE__ACCESS
|
||||||
# define VC_EXTRALEAN
|
# define VC_EXTRALEAN
|
||||||
# define WIN32_LEAN_AND_MEAN
|
# define WIN32_LEAN_AND_MEAN
|
||||||
#pragma warning(push)
|
#pragma warning(push)
|
||||||
|
@ -129,7 +132,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#if defined(HAVE_STDBOOL_H)
|
#if defined(HAVE_STDBOOL_H)
|
||||||
# include <stdbool.h>
|
# include <stdbool.h>
|
||||||
#else
|
#else
|
||||||
# if ! HAVE__BOOL
|
# ifndef HAVE__BOOL
|
||||||
# ifdef __cplusplus
|
# ifdef __cplusplus
|
||||||
typedef bool _Bool;
|
typedef bool _Bool;
|
||||||
# else
|
# else
|
||||||
|
|
2
storage
2
storage
|
@ -1 +1 @@
|
||||||
Subproject commit 2117191d4ad75e1eb14809878bc71d15b20a5d86
|
Subproject commit 18cc3bb8f8906237915eb31c9899f95340318087
|
Loading…
Reference in New Issue