зеркало из https://github.com/mozilla/gecko-dev.git
Bug 964133 - Fixup FakeIPC to build on windows; r=jesup
MozReview-Commit-ID: 2Jm82qs4hFL --HG-- extra : rebase_source : dfade0944c84df23580121384d2501229b78c0c6
This commit is contained in:
Родитель
d71edf00c9
Коммит
6affa752e1
|
@ -3,14 +3,23 @@
|
|||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "FakeIPC.h"
|
||||
|
||||
#ifdef WEBRTC_WIN
|
||||
#include <Windows.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
// The implementations can't be in the .h file for some annoying reason
|
||||
|
||||
/* static */ void
|
||||
PlatformThread:: YieldCurrentThread()
|
||||
{
|
||||
#ifdef WEBRTC_WIN
|
||||
Sleep(1);
|
||||
#else
|
||||
sleep(1);
|
||||
#endif
|
||||
}
|
||||
|
||||
namespace base {
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
#ifndef FAKE_IPC_H_
|
||||
#define FAKE_IPC_H_
|
||||
#include <unistd.h>
|
||||
|
||||
class PlatformThread {
|
||||
public:
|
||||
|
|
Загрузка…
Ссылка в новой задаче