Dear Thomas,
I was not able to reproduce this exact error. Defining the constant is a good woraround. However to prevent such error in future releases, could you try to add
#define _USE_MATH_DEFINES
before alle the includes in this file and see if that solves the issue?
Best regards
Robin