I tested it with 2.0.0 and no errors, same sketch with 2.1.0 gives me this:
Arduino: 1.8.0 (Mac OS X), Board: "Arduino Pro or Pro Mini, ATmega168 (5V, 16 MHz)"
Build options changed, rebuilding all
In file included from sketch/BinarySwitchSleepSensor.ino.cpp:1:0:
/Users/user/Documents/Arduino/libraries/MySensors/drivers/RF24/RF24.cpp: In function 'void RF24_csn(bool)':
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:88:152: error: '__digitalPinToPortReg' was not declared in this scope
#define digitalWriteFast(__pin, __value) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__value)) { bitWrite(__digitalPinToPortReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__value)); } else { digitalWrite((__pin), (__value)); } } while (0)
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
#define bitSet(value, bit) ((value) |= (1UL << (bit)))
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:88:115: note: in expansion of macro 'bitWrite'
#define digitalWriteFast(__pin, __value) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__value)) { bitWrite(__digitalPinToPortReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__value)); } else { digitalWrite((__pin), (__value)); } } while (0)
^
/Users/user/Documents/Arduino/libraries/MySensors/core/MyHwATMega328.h:62:40: note: in expansion of macro 'digitalWriteFast'
#define hwDigitalWrite(__pin, __value) digitalWriteFast(__pin, __value)
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/RF24/RF24.cpp:39:2: note: in expansion of macro 'hwDigitalWrite'
hwDigitalWrite(MY_RF24_CS_PIN, level);
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:88:187: error: '__digitalPinToBit' was not declared in this scope
#define digitalWriteFast(__pin, __value) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__value)) { bitWrite(__digitalPinToPortReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__value)); } else { digitalWrite((__pin), (__value)); } } while (0)
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
#define bitSet(value, bit) ((value) |= (1UL << (bit)))
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:88:115: note: in expansion of macro 'bitWrite'
#define digitalWriteFast(__pin, __value) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__value)) { bitWrite(__digitalPinToPortReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__value)); } else { digitalWrite((__pin), (__value)); } } while (0)
^
/Users/user/Documents/Arduino/libraries/MySensors/core/MyHwATMega328.h:62:40: note: in expansion of macro 'digitalWriteFast'
#define hwDigitalWrite(__pin, __value) digitalWriteFast(__pin, __value)
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/RF24/RF24.cpp:39:2: note: in expansion of macro 'hwDigitalWrite'
hwDigitalWrite(MY_RF24_CS_PIN, level);
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/RF24/RF24.cpp: In function 'void RF24_ce(bool)':
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:88:152: error: '__digitalPinToPortReg' was not declared in this scope
#define digitalWriteFast(__pin, __value) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__value)) { bitWrite(__digitalPinToPortReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__value)); } else { digitalWrite((__pin), (__value)); } } while (0)
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
#define bitSet(value, bit) ((value) |= (1UL << (bit)))
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:88:115: note: in expansion of macro 'bitWrite'
#define digitalWriteFast(__pin, __value) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__value)) { bitWrite(__digitalPinToPortReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__value)); } else { digitalWrite((__pin), (__value)); } } while (0)
^
/Users/user/Documents/Arduino/libraries/MySensors/core/MyHwATMega328.h:62:40: note: in expansion of macro 'digitalWriteFast'
#define hwDigitalWrite(__pin, __value) digitalWriteFast(__pin, __value)
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/RF24/RF24.cpp:44:2: note: in expansion of macro 'hwDigitalWrite'
hwDigitalWrite(MY_RF24_CE_PIN, level);
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:88:187: error: '__digitalPinToBit' was not declared in this scope
#define digitalWriteFast(__pin, __value) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__value)) { bitWrite(__digitalPinToPortReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__value)); } else { digitalWrite((__pin), (__value)); } } while (0)
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
#define bitSet(value, bit) ((value) |= (1UL << (bit)))
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:88:115: note: in expansion of macro 'bitWrite'
#define digitalWriteFast(__pin, __value) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__value)) { bitWrite(__digitalPinToPortReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__value)); } else { digitalWrite((__pin), (__value)); } } while (0)
^
/Users/user/Documents/Arduino/libraries/MySensors/core/MyHwATMega328.h:62:40: note: in expansion of macro 'digitalWriteFast'
#define hwDigitalWrite(__pin, __value) digitalWriteFast(__pin, __value)
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/RF24/RF24.cpp:44:2: note: in expansion of macro 'hwDigitalWrite'
hwDigitalWrite(MY_RF24_CE_PIN, level);
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/RF24/RF24.cpp: In function 'bool RF24_initialize()':
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:91:170: error: '__digitalPinToDDRReg' was not declared in this scope
#define pinModeFast(__pin, __mode) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__mode) && (__mode!=INPUT_PULLUP)) { bitWrite(__digitalPinToDDRReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__mode)); } else { pinMode((__pin), (__mode)); } } while (0)
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
#define bitSet(value, bit) ((value) |= (1UL << (bit)))
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:91:134: note: in expansion of macro 'bitWrite'
#define pinModeFast(__pin, __mode) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__mode) && (__mode!=INPUT_PULLUP)) { bitWrite(__digitalPinToDDRReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__mode)); } else { pinMode((__pin), (__mode)); } } while (0)
^
/Users/user/Documents/Arduino/libraries/MySensors/core/MyHwATMega328.h:64:35: note: in expansion of macro 'pinModeFast'
#define hwPinMode(__pin, __value) pinModeFast(__pin, __value)
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/RF24/RF24.cpp:388:2: note: in expansion of macro 'hwPinMode'
hwPinMode(MY_RF24_CE_PIN,OUTPUT);
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:91:205: error: '__digitalPinToBit' was not declared in this scope
#define pinModeFast(__pin, __mode) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__mode) && (__mode!=INPUT_PULLUP)) { bitWrite(__digitalPinToDDRReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__mode)); } else { pinMode((__pin), (__mode)); } } while (0)
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
#define bitSet(value, bit) ((value) |= (1UL << (bit)))
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:91:134: note: in expansion of macro 'bitWrite'
#define pinModeFast(__pin, __mode) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__mode) && (__mode!=INPUT_PULLUP)) { bitWrite(__digitalPinToDDRReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__mode)); } else { pinMode((__pin), (__mode)); } } while (0)
^
/Users/user/Documents/Arduino/libraries/MySensors/core/MyHwATMega328.h:64:35: note: in expansion of macro 'pinModeFast'
#define hwPinMode(__pin, __value) pinModeFast(__pin, __value)
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/RF24/RF24.cpp:388:2: note: in expansion of macro 'hwPinMode'
hwPinMode(MY_RF24_CE_PIN,OUTPUT);
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:91:170: error: '__digitalPinToDDRReg' was not declared in this scope
#define pinModeFast(__pin, __mode) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__mode) && (__mode!=INPUT_PULLUP)) { bitWrite(__digitalPinToDDRReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__mode)); } else { pinMode((__pin), (__mode)); } } while (0)
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:30: note: in definition of macro 'bitSet'
#define bitSet(value, bit) ((value) |= (1UL << (bit)))
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:91:134: note: in expansion of macro 'bitWrite'
#define pinModeFast(__pin, __mode) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__mode) && (__mode!=INPUT_PULLUP)) { bitWrite(__digitalPinToDDRReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__mode)); } else { pinMode((__pin), (__mode)); } } while (0)
^
/Users/user/Documents/Arduino/libraries/MySensors/core/MyHwATMega328.h:64:35: note: in expansion of macro 'pinModeFast'
#define hwPinMode(__pin, __value) pinModeFast(__pin, __value)
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/RF24/RF24.cpp:389:2: note: in expansion of macro 'hwPinMode'
hwPinMode(MY_RF24_CS_PIN,OUTPUT);
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:91:205: error: '__digitalPinToBit' was not declared in this scope
#define pinModeFast(__pin, __mode) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__mode) && (__mode!=INPUT_PULLUP)) { bitWrite(__digitalPinToDDRReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__mode)); } else { pinMode((__pin), (__mode)); } } while (0)
^
/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:112:49: note: in definition of macro 'bitSet'
#define bitSet(value, bit) ((value) |= (1UL << (bit)))
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/AVR/DigitalWriteFast/digitalWriteFast.h:91:134: note: in expansion of macro 'bitWrite'
#define pinModeFast(__pin, __mode) do { if (__builtin_constant_p(__pin) && __builtin_constant_p(__mode) && (__mode!=INPUT_PULLUP)) { bitWrite(__digitalPinToDDRReg(__pin), (uint8_t)__digitalPinToBit(__pin), (__mode)); } else { pinMode((__pin), (__mode)); } } while (0)
^
/Users/user/Documents/Arduino/libraries/MySensors/core/MyHwATMega328.h:64:35: note: in expansion of macro 'pinModeFast'
#define hwPinMode(__pin, __value) pinModeFast(__pin, __value)
^
/Users/user/Documents/Arduino/libraries/MySensors/drivers/RF24/RF24.cpp:389:2: note: in expansion of macro 'hwPinMode'
hwPinMode(MY_RF24_CS_PIN,OUTPUT);
^
exit status 1
Error compiling for board Arduino Pro or Pro Mini.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.