aboutsummaryrefslogtreecommitdiff
path: root/linmath.h
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2016-04-25 23:13:19 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2016-04-25 23:13:19 +0200
commitd687bd910f073bcae853c7f46f6cbe6b88ad66f5 (patch)
treec19d97d9558872e51f41102c5bc73cf8fb3a9ea1 /linmath.h
parenta6d0ebd66b0ca5f4125df72fa96e3ef6bdb8d2ad (diff)
downloadpointoverdrawbench-d687bd910f073bcae853c7f46f6cbe6b88ad66f5.tar.gz
pointoverdrawbench-d687bd910f073bcae853c7f46f6cbe6b88ad66f5.tar.bz2
keep ratio of window filled constant regardless of aspect
Diffstat (limited to 'linmath.h')
-rw-r--r--linmath.h/linmath.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/linmath.h/linmath.h b/linmath.h/linmath.h
index d21fd7d..70b15a4 100644
--- a/linmath.h/linmath.h
+++ b/linmath.h/linmath.h
@@ -1,6 +1,18 @@
#ifndef LINMATH_H
#define LINMATH_H
+#if __STDC_VERSION__ < 199901L
+# ifndef inline
+# if defined(_MSC_VER)
+# define inline __inline
+# elif defined(__GNUC__)
+# define inline __inline__
+# else
+# define inline
+# endif
+# endif
+#endif
+
#include <math.h>
#include <string.h>