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:
@@ -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();
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user