Switch C++-style C headers with their C equivalents.

The C++ headers define the C functions within the std:: namespace, but
we mainly don't use the std:: namespace for C functions. Therefore we
should include the C headers.

BUG=1833
R=tommi@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1917004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4486 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
pbos@webrtc.org
2013-08-05 16:22:53 +00:00
parent c3d93c6921
commit 12dc1a38ca
212 changed files with 396 additions and 334 deletions

View File

@ -14,8 +14,8 @@ extern "C" {
#include "webrtc/modules/audio_processing/utility/ring_buffer.h"
}
#include <cstdlib>
#include <ctime>
#include <stdlib.h>
#include <time.h>
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/system_wrappers/interface/scoped_ptr.h"
@ -51,9 +51,9 @@ static void RandomStressTest(int** data_ptr) {
const int kNumOps = 10000;
const int kMaxBufferSize = 1000;
unsigned int seed = std::time(NULL);
unsigned int seed = time(NULL);
printf("seed=%u\n", seed);
std::srand(seed);
srand(seed);
for (int i = 0; i < kNumTests; i++) {
const int buffer_size = std::max(rand() % kMaxBufferSize, 1);
scoped_array<int> write_data(new int[buffer_size]);