ref: 152882e1b5b6e382d6298c91144358d6867cedbf
parent: daa4c8330f5bd6c7eed7cad30353fc5848922101
author: MHS <gek@katherine>
date: Wed Apr 28 15:52:34 EDT 2021
Automatic commit.
--- a/config.mk
+++ b/config.mk
@@ -3,6 +3,7 @@
CC= clang
#CC=gcc
+#CC=tcc
#uncomment the following line for compiling the lib using tinyc.
#note that the demos will fail to build with tinyc, but you can
#-link- to tinygl built with tinyc using gcc.
--- a/include-demo/3dMath.h
+++ b/include-demo/3dMath.h
@@ -4,6 +4,11 @@
#ifndef CHAD_MATH_H
#define CHAD_MATH_H
+
+#ifdef __TINYC__
+#define CHAD_MATH_NO_ALIGN
+#endif
+
#ifndef CHAD_MATH_NO_ALIGN
#include <stdalign.h>
#define CHAD_ALIGN alignas(16)
--- a/include-demo/stb_image.h
+++ b/include-demo/stb_image.h
@@ -1,3 +1,7 @@
+#ifdef __TINYC__
+#define STBI_NO_SIMD
+#endif
+
/* stb_image - v2.25 - public domain image loader - http://nothings.org/stb
no warranty implied; use at your own risk