Selaa lähdekoodia

Fixes for compiling on Solaris.

Ryan C. Gordon 17 vuotta sitten
vanhempi
commit
3f0cffcc50
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  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