Replaced C standard headers (<xxx.h>) with their C++ version (<cxxx>)

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1545 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-08-02 20:36:27 +00:00
parent 41b29f45f8
commit ff2c4f2ee7
20 changed files with 48 additions and 53 deletions

View file

@ -31,7 +31,7 @@
#include <SFML/Network/SocketImpl.hpp>
#include <SFML/System/Err.hpp>
#include <algorithm>
#include <string.h>
#include <cstring>
#ifdef _MSC_VER
#pragma warning(disable : 4127) // "conditional expression is constant" generated by the FD_SET macro
@ -340,7 +340,7 @@ Socket::Status TcpSocket::Receive(Packet& packet)
{
myPendingPacket.Data.resize(myPendingPacket.Data.size() + received);
char* begin = &myPendingPacket.Data[0] + myPendingPacket.Data.size() - received;
memcpy(begin, buffer, received);
std::memcpy(begin, buffer, received);
}
}