cli(); not declared in scope

On the UNO I used cli(); to turn off any background interrupts and sei(); to turn it back on within my sketch. But when I use this code on the 101 I get an error message "cli(); was not declared in this scope". Do I have to include a library? Very confused :frowning:

Any help is truly appreciated.


cli(), sei() are AVR specific shortcuts. Arduino 101 is not an AVR board; I guess there will be a period of adjustment when people accustomed to the AVR world try something different.