OpenGL gl include issues introduced between 7.0.3 and 7.0.10 on macos

We have just moved from JUCE 7.0.3 to 7.0.10 and suddenly all our mac projects are hitting the error below in juce_gl.h

#error gltypes.h included before juce_gl.h

After editing the gltypes.h file with a #error, I can see that this is being brought in by opengl.framework, which I presume is brought in by our use of the opengl module, as we haven’t explicitly included it in the jucer ourselves. We actually only use opengl for windows in this instance, and windows doesn’t report the error.

I couldn’t see a significant difference in the projucer generated xcodeproj file that would suggest that things were happening in a different order than before.

Is there a known change that could cause this change in previously working v7.0.3 projects? Is there a workaround?

This is a bit suspicious, the juce_gles2.h is guarded thus:

#if JUCE_IOS || JUCE_ANDROID
 #define JUCE_OPENGL_ES 1
 #include "opengl/juce_gles2.h"
#else

This header should only ever be included when targeting iOS or Android.

Did you remember to resave your project with 7.0.10’s Projucer after updating to JUCE 7.0.10?

Apologies, ive grabbed the error from the wrong file as i switched machines to post. I should have written:

#error gltypes.h included before juce_gl.h

And yes, I’ve resaved the jucer. This project only has VS and Xcode (macOS) configurations so no iOS involved.

These products have PACE applied, I will do some further testing to see if that could be a contributing factor to this issue and report back.