Avoid redefining in XString. refit.inf updated.

This commit is contained in:
Jief L 2020-03-12 18:23:36 +03:00
parent 4cad90281f
commit 3ded70c215
2 changed files with 10 additions and 0 deletions

View File

@ -17,9 +17,15 @@
#include "printf_lite.h"
#ifndef memcpy
#define memcpy(dest,source,count) CopyMem(dest,(void*)(source),(UINTN)(count))
#endif
#ifndef strlen
#define strlen(str) (xsize)(AsciiStrLen(str))
#endif
#ifndef memmove
#define memmove(dest,source,count) CopyMem(dest,source,(UINTN)(count))
#endif
xsize XStringGrowByDefault = 1024;
const XString NullXString;

View File

@ -190,6 +190,8 @@
cpp_foundation/utf8Conversion.h
cpp_foundation/XArray.h
cpp_foundation/XObjArray.h
cpp_foundation/XString.cpp
cpp_foundation/XString.h
cpp_foundation/XStringW.cpp
cpp_foundation/XStringW.h
cpp_foundation/XStringWP.cpp
@ -208,6 +210,8 @@
cpp_unit_test/XArray_tests.h
cpp_unit_test/XObjArray_tests.cpp
cpp_unit_test/XObjArray_tests.h
cpp_unit_test/XString_test.cpp
cpp_unit_test/XString_test.h
cpp_unit_test/XStringW_test.cpp
cpp_unit_test/XStringW_test.h
cpp_unit_test/XStringWArray_test.cpp