Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
dd61391c
Commit
dd61391c
authored
Mar 27, 2015
by
Matt Clarkson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only include the correct platform headers
parent
6880244e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
benchmark.cc
src/benchmark.cc
+3
-0
colorprint.cc
src/colorprint.cc
+4
-0
sysinfo.cc
src/sysinfo.cc
+6
-0
No files found.
src/benchmark.cc
View file @
dd61391c
...
...
@@ -13,9 +13,12 @@
// limitations under the License.
#include "benchmark/benchmark.h"
#include "internal_macros.h"
#include <sys/time.h>
#ifndef OS_WINDOWS
#include <sys/resource.h>
#endif
#include <unistd.h>
#include <cstdlib>
...
...
src/colorprint.cc
View file @
dd61391c
...
...
@@ -19,6 +19,10 @@
#include "commandlineflags.h"
#include "internal_macros.h"
#ifdef OS_WINDOWS
#include <Windows.h>
#endif
DECLARE_bool
(
color_print
);
namespace
benchmark
{
...
...
src/sysinfo.cc
View file @
dd61391c
...
...
@@ -13,13 +13,19 @@
// limitations under the License.
#include "sysinfo.h"
#include "internal_macros.h"
#ifdef OS_WINDOWS
#include <Shlwapi.h>
#include <Windows.h>
#else
#include <fcntl.h>
#include <sys/resource.h>
#include <sys/types.h> // this header must be included before 'sys/sysctl.h' to avoid compilation error on FreeBSD
#include <sys/sysctl.h>
#include <sys/time.h>
#include <unistd.h>
#endif
#include <cerrno>
#include <cstdio>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment