Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix macOS (AppleClang) incompatibilities #5

Open
wants to merge 3 commits into
base: bt-trx
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required (VERSION 2.8.8)
project (arduino_mock)

set(CMAKE_CXX_STANDARD 11 CACHE STRING "Set the C++ standard to be used for compiling")

find_package(Threads REQUIRED)
add_subdirectory(lib/gtest)

Expand Down
1 change: 1 addition & 0 deletions include/arduino-mock/Arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ extern "C" {

#ifdef WIN32
#elif linux
#elif __APPLE__
#else
#define true 0x1
#define false 0x0
Expand Down
1 change: 1 addition & 0 deletions src/Serial.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Copyright 2014 http://switchdevice.com

#include <iomanip>
#include "arduino-mock/Serial.h"

static SerialMock* gSerialMock = NULL;
Expand Down