diff --git a/telldus-core/tdtool/main.cpp b/telldus-core/tdtool/main.cpp index ba7b2a44..2caa7562 100644 --- a/telldus-core/tdtool/main.cpp +++ b/telldus-core/tdtool/main.cpp @@ -7,6 +7,9 @@ #ifdef _WINDOWS #define strcasecmp _stricmp +#define DEGREE " " +#else +#define DEGREE "°" #endif const int SUPPORTED_METHODS = @@ -142,7 +145,7 @@ int list_devices() { if (dataTypes & TELLSTICK_TEMPERATURE) { tdSensorValue(protocol, model, sensorId, TELLSTICK_TEMPERATURE, tempvalue, DATA_LENGTH, (int *)×tamp); - strcat(tempvalue, "°"); + strcat(tempvalue, DEGREE); strftime(timeBuf, sizeof(timeBuf), "%Y-%m-%d %H:%M:%S", localtime(×tamp)); }