Bug 929439 - Include string.h for memcpy. r=bgirard
authorSteve Singer <steve@ssinger.info>
Wed, 23 Oct 2013 16:39:00 +0100
changeset 165765 0787526e0ed6c7d1c5cdb27daedfa2084589d114
parent 165764 23eb32b0f555df349cc64f0b58e0e64a0a6d4c13
child 165766 e5c275ba558eac8c9e84ec175c207ff4690f7a42
push id3066
push userakeybl@mozilla.com
push dateMon, 09 Dec 2013 19:58:46 +0000
treeherdermozilla-beta@a31a0dce83aa [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgirard
bugs929439
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 929439 - Include string.h for memcpy. r=bgirard
gfx/layers/BufferUnrotate.cpp
--- a/gfx/layers/BufferUnrotate.cpp
+++ b/gfx/layers/BufferUnrotate.cpp
@@ -3,16 +3,17 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include <algorithm> // min & max
 #include <cstdlib>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 void BufferUnrotate(uint8_t* aBuffer, int aByteWidth, int aHeight,
                     int aByteStride, int aXBoundary, int aYBoundary)
 {
   if (aXBoundary != 0) {
     uint8_t* line = new uint8_t[aByteWidth];
     uint32_t smallStart = 0;
     uint32_t smallLen = aXBoundary;