@@ -596,8 +596,8 @@ void RTDEF(CharacterConcatenate)(Descriptor &accumulator,
596596 from.GetLowerBounds (fromAt);
597597 for (; elements-- > 0 ;
598598 to += newBytes, p += oldBytes, from.IncrementSubscripts (fromAt)) {
599- std ::memcpy (to, p, oldBytes);
600- std ::memcpy (to + oldBytes, from.Element <char >(fromAt), fromBytes);
599+ Fortran::runtime ::memcpy (to, p, oldBytes);
600+ Fortran::runtime ::memcpy (to + oldBytes, from.Element <char >(fromAt), fromBytes);
601601 }
602602 FreeMemory (old);
603603}
@@ -611,7 +611,7 @@ void RTDEF(CharacterConcatenateScalar1)(
611611 std::size_t oldLen{accumulator.ElementBytes ()};
612612 accumulator.raw ().elem_len += chars;
613613 RUNTIME_CHECK (terminator, accumulator.Allocate () == CFI_SUCCESS);
614- std ::memcpy (accumulator.OffsetElement <char >(oldLen), from, chars);
614+ Fortran::runtime ::memcpy (accumulator.OffsetElement <char >(oldLen), from, chars);
615615 FreeMemory (old);
616616}
617617
@@ -677,15 +677,15 @@ void RTDEF(CharacterCompare)(
677677std::size_t RTDEF (CharacterAppend1)(char *lhs, std::size_t lhsBytes,
678678 std::size_t offset, const char *rhs, std::size_t rhsBytes) {
679679 if (auto n{std::min (lhsBytes - offset, rhsBytes)}) {
680- std ::memcpy (lhs + offset, rhs, n);
680+ Fortran::runtime ::memcpy (lhs + offset, rhs, n);
681681 offset += n;
682682 }
683683 return offset;
684684}
685685
686686void RTDEF (CharacterPad1)(char *lhs, std::size_t bytes, std::size_t offset) {
687687 if (bytes > offset) {
688- std ::memset (lhs + offset, ' ' , bytes - offset);
688+ Fortran::runtime ::memset (lhs + offset, ' ' , bytes - offset);
689689 }
690690}
691691
@@ -817,7 +817,7 @@ void RTDEF(Repeat)(Descriptor &result, const Descriptor &string,
817817 }
818818 const char *from{string.OffsetElement ()};
819819 for (char *to{result.OffsetElement ()}; ncopies-- > 0 ; to += origBytes) {
820- std ::memcpy (to, from, origBytes);
820+ Fortran::runtime ::memcpy (to, from, origBytes);
821821 }
822822}
823823
@@ -847,7 +847,7 @@ void RTDEF(Trim)(Descriptor &result, const Descriptor &string,
847847 result.Establish (string.type (), resultBytes, nullptr , 0 , nullptr ,
848848 CFI_attribute_allocatable);
849849 RUNTIME_CHECK (terminator, result.Allocate () == CFI_SUCCESS);
850- std ::memcpy (result.OffsetElement (), string.OffsetElement (), resultBytes);
850+ Fortran::runtime ::memcpy (result.OffsetElement (), string.OffsetElement (), resultBytes);
851851}
852852
853853std::size_t RTDEF (Verify1)(const char *x, std::size_t xLen, const char *set,
0 commit comments