GLSL Syntax error at #version, GL Version is Metal?

SOLUTION: Before the context is fully initialized you have to set the profile to core. Otherwise it will use an outdated version. In my case (I am using SDL):

// Make window here

SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); 

// Do the rest of the initialization stuff here

Or, if using GLFW:

glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);

// Make the window

Thank you for your help!