|
@@ -32,7 +32,6 @@
|
|
|
/* !!! FIXME: if HAVE_ALLOCA_H would be good, too. */
|
|
/* !!! FIXME: if HAVE_ALLOCA_H would be good, too. */
|
|
|
#if sun
|
|
#if sun
|
|
|
#include <alloca.h>
|
|
#include <alloca.h>
|
|
|
-#define __inline__ inline
|
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(__sun) || defined(sun)
|
|
#if defined(__sun) || defined(sun)
|
|
@@ -50,6 +49,14 @@ extern "C" {
|
|
|
#define PHYSFS_MINIMUM_GCC_VERSION(major, minor) (0)
|
|
#define PHYSFS_MINIMUM_GCC_VERSION(major, minor) (0)
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+#ifdef __cplusplus
|
|
|
|
|
+ /* C++ always has a real inline keyword. */
|
|
|
|
|
+#elif (defined macintosh) && !(defined __MWERKS__)
|
|
|
|
|
+# define inline
|
|
|
|
|
+#elif (defined _MSC_VER)
|
|
|
|
|
+# define inline __inline
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
* Interface for small allocations. If you need a little scratch space for
|
|
* Interface for small allocations. If you need a little scratch space for
|
|
|
* a throwaway buffer or string, use this. It will make small allocations
|
|
* a throwaway buffer or string, use this. It will make small allocations
|