Explorar o código

Fixes for compiling on Solaris.

Ryan C. Gordon %!s(int64=17) %!d(string=hai) anos
pai
achega
3f0cffcc50
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/physfs_internal.h

+ 6 - 0
src/physfs_internal.h

@@ -29,6 +29,12 @@
 #include <malloc.h>
 #endif
 
+/* !!! FIXME: if HAVE_ALLOCA_H would be good, too. */
+#if sun
+#include <alloca.h>
+#define __inline__ inline
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif