BLOCK_BUFFER_SIZE was not declared in this scope

I am using the Arduino IDE v1.6.9 and trying to compile marlin 1.1 firmware but keep getting the error “BLOCK_BUFFER_SIZE was not declared in this scope” in the Marlin-main.cpp. I can find nothing on the web about this problem so I can believe the issue is on my end, but don’t know how to fix it.

I could use some suggestions.

If this is the wrong type of topic for this location, sorry.

Please make a .zip file of the complete Marlin sketch you're using, including any configuration changes you've made. Click the "Reply" button on this forum thread and you'll see an "Attachments and other settings" link, which will allow you to attach the .zip file to a reply.

I'll take a look at it and see if I can spot the problem.