Changeset View
Changeset View
Standalone View
Standalone View
src/compat.h
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | |||||
#ifdef WIN32 | #ifdef WIN32 | ||||
#ifndef S_IRUSR | #ifndef S_IRUSR | ||||
#define S_IRUSR 0400 | #define S_IRUSR 0400 | ||||
#define S_IWUSR 0200 | #define S_IWUSR 0200 | ||||
#endif | #endif | ||||
#else | #else | ||||
#define MAX_PATH 1024 | #define MAX_PATH 1024 | ||||
#endif | #endif | ||||
#ifdef _MSC_VER | |||||
#if !defined(ssize_t) | |||||
#ifdef _WIN64 | |||||
typedef int64_t ssize_t; | |||||
#else | |||||
typedef int32_t ssize_t; | |||||
#endif | |||||
#endif | |||||
#endif | |||||
#if HAVE_DECL_STRNLEN == 0 | #if HAVE_DECL_STRNLEN == 0 | ||||
size_t strnlen(const char *start, size_t max_len); | size_t strnlen(const char *start, size_t max_len); | ||||
#endif // HAVE_DECL_STRNLEN | #endif // HAVE_DECL_STRNLEN | ||||
#ifndef WIN32 | #ifndef WIN32 | ||||
typedef void *sockopt_arg_type; | typedef void *sockopt_arg_type; | ||||
#else | #else | ||||
Show All 22 Lines |