shithub: tinygl

Download patch

ref: c440c9c609281bb8b6cc4e5a51687540241c3e48
parent: e670b8938472162fb4a2d884c2129dfe72fe404d
author: David <gek@katherine>
date: Fri Feb 26 06:51:08 EST 2021

Compiletime compat test update

--- a/include/GL/gl.h
+++ b/include/GL/gl.h
@@ -733,8 +733,12 @@
 //#error "GLbyte is wrong size!"
 //#endif
 extern char TGL_BUILDT_GLbyte[ 1-2*(sizeof(GLbyte) != 1)];
-#ifndef __STDC_IEC_559__
+#ifdef __STDC_IEC_559__
+#if __STDC_IEC_559__ == 0
 #error C99 Compiler Using Non-Compliant Float Type! Compatibility not guaranteed.
+#endif
+#else
+#warning "Cannot test __STDC_IEC_559__, it is not defined."
 #endif
 //extern char __BUILDT_error[ 1-2*(sizeof(GLbyte) != 4)];
 extern char TGL_BUILDT_GLshort[ 1-2*(sizeof(GLshort) != 2)];