The only thing you have to do is to change the file reading function (filelength is windows stuff) and remove windows.h io.h glext.h and everything that has to do with wglGetProcAddress…
…and you need a glfw installed
compile with gcc -o GLSLconics GLSLconics.c -lglfw -framework Carbon -framework AGL -framework OpenGL
quick and dirty filelenth:
long getFileLength( File* f) {
fseek(f, 0, SEEK_END);
return ftell(f);
}