shithub: dumb

Download patch

ref: bf5dd80894f947d3eca15960ca1b329e9ccde677
parent: 8298eb20f77e77c92012ca880e479456d0d1112c
author: Chris Moeller <[email protected]>
date: Fri Oct 4 06:16:35 EDT 2013

Copied LONG_LONG definition inside of tarray header so it doesn't need to include the main dumb header

--- a/dumb/include/internal/tarray.h
+++ b/dumb/include/internal/tarray.h
@@ -3,7 +3,17 @@
 
 #include <stdlib.h>
 
-#include "../dumb.h"
+#ifndef LONG_LONG
+#if defined __GNUC__ || defined __INTEL_COMPILER || defined __MWERKS__
+#define LONG_LONG long long
+#elif defined _MSC_VER || defined __WATCOMC__
+#define LONG_LONG __int64
+#elif defined __sgi
+#define LONG_LONG long long
+#else
+#error 64-bit integer type unknown
+#endif
+#endif
 
 void * timekeeping_array_create(size_t size);
 void timekeeping_array_destroy(void * array);