Fix portability issues to Linux, FreeBSD, and older libc++

Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/21764

Differential Revision: D13902907

Pulled By: hramos

fbshipit-source-id: 640cde865b1bcc5ca43c17d00574b8e2f78ceaf4
This commit is contained in:
Matt Hargett
2019-01-31 17:41:46 -08:00
committed by Facebook Github Bot
parent 1e6f5344d6
commit 36916ee99d
9 changed files with 13 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
#include <algorithm>
#include <chrono>
#include <mutex>
#include <sstream>
#include <vector>
#include <time.h>
@@ -17,7 +18,7 @@
// we can get rid of this
#if defined(__APPLE__)
#define MICRO_PROFILER_STUB_IMPLEMENTATION 1
#else
#elif !defined(MICRO_PROFILER_STUB_IMPLEMENTATION)
#define MICRO_PROFILER_STUB_IMPLEMENTATION 0
#endif