1
0
mirror of https://github.com/bobranten/Ext4Fsd.git synced 2025-10-30 05:18:31 -05:00

improved build compatibility

This commit is contained in:
Bo Brantén
2020-01-21 19:06:37 +01:00
parent c9302e9032
commit 310ac38275
4 changed files with 10 additions and 1 deletions

View File

@@ -2527,8 +2527,10 @@ Ext2TruncateIndirect(
// linux.c: linux lib implemenation // linux.c: linux lib implemenation
// //
#if _MSC_VER > 1900
int strncmp(const char* str1, const char* str2, size_t count); int strncmp(const char* str1, const char* str2, size_t count);
char* strncpy(char* dest, const char* src, size_t count); char* strncpy(char* dest, const char* src, size_t count);
#endif
int int
ext2_init_linux(); ext2_init_linux();

View File

@@ -140,7 +140,8 @@
#define ESERVERFAULT 526 /* An untranslatable error occurred */ #define ESERVERFAULT 526 /* An untranslatable error occurred */
#define EBADTYPE 527 /* Type not supported by server */ #define EBADTYPE 527 /* Type not supported by server */
#define EJUKEBOX 528 /* Request initiated, but will not complete before timeout */ #define EJUKEBOX 528 /* Request initiated, but will not complete before timeout */
#if _MSC_VER > 1900
#define ENAMETOOLONG 1024; #define ENAMETOOLONG 1024;
#endif
#endif #endif

View File

@@ -1019,7 +1019,9 @@ struct mmp_struct {
#define XATTR_NO_CTIME 0x80 #define XATTR_NO_CTIME 0x80
#endif #endif
#if _MSC_VER > 1900
int _strnicmp(const char* str1, const char* str2, size_t count); int _strnicmp(const char* str1, const char* str2, size_t count);
#endif
/* /*
* NOTE! unlike strncmp, ext3_match returns 1 for success, 0 for failure. * NOTE! unlike strncmp, ext3_match returns 1 for success, 0 for failure.

View File

@@ -983,6 +983,8 @@ void iput(struct inode *inode)
// string functions from linux/lib/string.c // string functions from linux/lib/string.c
// //
#if _MSC_VER > 1900
int _strnicmp(const char* str1, const char* str2, size_t count) int _strnicmp(const char* str1, const char* str2, size_t count)
{ {
unsigned int c1, c2; unsigned int c1, c2;
@@ -1034,6 +1036,8 @@ char* strncpy(char* dest, const char* src, size_t count)
return dest; return dest;
} }
#endif
// //
// initialzer and destructor // initialzer and destructor
// //