projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
469289e
)
[VFATLIB] Fix MSVC build?
author
Pierre Schweitzer
<pierre@reactos.org>
Mon, 28 May 2018 21:29:06 +0000
(23:29 +0200)
committer
Pierre Schweitzer
<pierre@reactos.org>
Mon, 28 May 2018 21:29:06 +0000
(23:29 +0200)
sdk/lib/fslib/vfatlib/check/lfn.c
patch
|
blob
|
history
diff --git
a/sdk/lib/fslib/vfatlib/check/lfn.c
b/sdk/lib/fslib/vfatlib/check/lfn.c
index
a30ed57
..
17832f8
100644
(file)
--- a/
sdk/lib/fslib/vfatlib/check/lfn.c
+++ b/
sdk/lib/fslib/vfatlib/check/lfn.c
@@
-66,13
+66,27
@@
static unsigned char fat_uni2esc[64] = {
/* for maxlen param */
#define UNTIL_0 INT_MAX
/* for maxlen param */
#define UNTIL_0 INT_MAX
+#ifdef __REACTOS__
+static void copy_lfn_part(unsigned char *dst, LFN_ENT * lfn);
+static char *cnv_unicode(const unsigned char *uni, int maxlen, int use_q);
+#endif
+
/* Convert name part in 'lfn' from unicode to ASCII */
/* Convert name part in 'lfn' from unicode to ASCII */
+#ifndef __REACTOS__
#define CNV_THIS_PART(lfn) \
({ \
unsigned char __part_uni[CHARS_PER_LFN*2]; \
copy_lfn_part( __part_uni, lfn ); \
cnv_unicode( __part_uni, CHARS_PER_LFN, 0 ); \
})
#define CNV_THIS_PART(lfn) \
({ \
unsigned char __part_uni[CHARS_PER_LFN*2]; \
copy_lfn_part( __part_uni, lfn ); \
cnv_unicode( __part_uni, CHARS_PER_LFN, 0 ); \
})
+#else
+static __inline char* CNV_THIS_PART(LFN_ENT * lfn)
+{
+ unsigned char __part_uni[CHARS_PER_LFN*2];
+ copy_lfn_part(__part_uni, lfn);
+ return cnv_unicode(__part_uni, CHARS_PER_LFN, 0);
+}
+#endif
/* Convert name parts collected so far (from previous slots) from unicode to
* ASCII */
/* Convert name parts collected so far (from previous slots) from unicode to
* ASCII */