Commit 318d5e03 by Nicolas Capens Committed by Nicolas Capens

Replace <memory.h> with <cstring>.

<memory.h> isn't actually an official standard C header. memcpy() is defined in <string.h> / <cstring>. Change-Id: I578e3a8ea741934e594049e359b906665de80134 Reviewed-on: https://swiftshader-review.googlesource.com/c/22649Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 70c41989
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
#include "Pipeline/PixelRoutine.hpp" #include "Pipeline/PixelRoutine.hpp"
#include "System/Debug.hpp" #include "System/Debug.hpp"
#include <memory.h> #include <cstring>
#include <string.h>
namespace sw namespace sw
{ {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "System/Math.hpp" #include "System/Math.hpp"
#include "System/Half.hpp" #include "System/Half.hpp"
#include <memory.h> #include <cstring>
namespace sw namespace sw
{ {
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <unistd.h> #include <unistd.h>
#endif #endif
#include <memory.h> #include <cstring>
#undef allocate #undef allocate
#undef deallocate #undef deallocate
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
#include "VkBuffer.hpp" #include "VkBuffer.hpp"
#include "VkConfig.h" #include "VkConfig.h"
#include "VkDeviceMemory.hpp" #include "VkDeviceMemory.hpp"
#include <memory.h>
#include <cstring>
namespace vk namespace vk
{ {
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
#include "VkPhysicalDevice.hpp" #include "VkPhysicalDevice.hpp"
#include "VkConfig.h" #include "VkConfig.h"
#include <memory.h>
#include <cstring>
namespace vk namespace vk
{ {
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
// limitations under the License. // limitations under the License.
#include "VkShaderModule.hpp" #include "VkShaderModule.hpp"
#include <memory.h>
#include <cstring>
namespace vk namespace vk
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment