Преглед на файлове

Fixes for compiling on Solaris.

Ryan C. Gordon преди 17 години
родител
ревизия
3f0cffcc50
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      src/physfs_internal.h

+ 6 - 0
src/physfs_internal.h

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