From 25d07075b7528af4f1e55f6803b6dc74449ded6d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 11 Oct 2011 21:33:31 +1100 Subject: [PATCH] desktop: more cygwin fixes --- libraries/Desktop/Desktop.mk | 3 ++- libraries/Desktop/support/Arduino.cpp | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libraries/Desktop/Desktop.mk b/libraries/Desktop/Desktop.mk index 1fd49f6d05..f82bf47bda 100644 --- a/libraries/Desktop/Desktop.mk +++ b/libraries/Desktop/Desktop.mk @@ -170,7 +170,8 @@ else LIBTOKENS := $(sort $(shell cat $(SKETCHPDESRCS) $(SKETCHSRCS) | sed -nre $(SEXPR))) endif -NODESKTOP := FastSerial/FastSerial.cpp +# these are library objects we don't want in the desktop build (maybe we'll add them later) +NODESKTOP := FastSerial/FastSerial.cpp AP_Compass/AP_Compass_HMC5843.cpp APM_BMP085/APM_BMP085.cpp # # Find sketchbook libraries referenced by the sketch. diff --git a/libraries/Desktop/support/Arduino.cpp b/libraries/Desktop/support/Arduino.cpp index 676f3e84f7..60812ddb64 100644 --- a/libraries/Desktop/support/Arduino.cpp +++ b/libraries/Desktop/support/Arduino.cpp @@ -71,6 +71,11 @@ int strcasecmp_P(PGM_P str1, PGM_P str2) return strcasecmp(str1, str2); } +int strcmp_P(PGM_P str1, PGM_P str2) +{ + return strcmp(str1, str2); +} + void digitalWrite(uint8_t pin, uint8_t val) {