mirror of
https://github.com/bobranten/Ext4Fsd.git
synced 2025-10-29 21:18:30 -05:00
improved build compatibility
This commit is contained in:
@@ -2527,8 +2527,10 @@ Ext2TruncateIndirect(
|
||||
// linux.c: linux lib implemenation
|
||||
//
|
||||
|
||||
#if _MSC_VER > 1900
|
||||
int strncmp(const char* str1, const char* str2, size_t count);
|
||||
char* strncpy(char* dest, const char* src, size_t count);
|
||||
#endif
|
||||
|
||||
int
|
||||
ext2_init_linux();
|
||||
|
||||
@@ -140,7 +140,8 @@
|
||||
#define ESERVERFAULT 526 /* An untranslatable error occurred */
|
||||
#define EBADTYPE 527 /* Type not supported by server */
|
||||
#define EJUKEBOX 528 /* Request initiated, but will not complete before timeout */
|
||||
|
||||
#if _MSC_VER > 1900
|
||||
#define ENAMETOOLONG 1024;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1019,7 +1019,9 @@ struct mmp_struct {
|
||||
#define XATTR_NO_CTIME 0x80
|
||||
#endif
|
||||
|
||||
#if _MSC_VER > 1900
|
||||
int _strnicmp(const char* str1, const char* str2, size_t count);
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 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
|
||||
//
|
||||
|
||||
#if _MSC_VER > 1900
|
||||
|
||||
int _strnicmp(const char* str1, const char* str2, size_t count)
|
||||
{
|
||||
unsigned int c1, c2;
|
||||
@@ -1034,6 +1036,8 @@ char* strncpy(char* dest, const char* src, size_t count)
|
||||
return dest;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
// initialzer and destructor
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user