Parcourir la source

Fixes for compiling on Solaris.

Ryan C. Gordon il y a 17 ans
Parent
commit
3f0cffcc50
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  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