216 #ifndef _INCLUDE_PHYSFS_H_
217 #define _INCLUDE_PHYSFS_H_
223 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
224 #if (defined _MSC_VER)
225 #define __EXPORT__ __declspec(dllexport)
226 #elif (__GNUC__ >= 3)
227 #define __EXPORT__ __attribute__((visibility("default")))
284 #if (defined PHYSFS_NO_64BIT_SUPPORT)
287 #elif (defined _MSC_VER)
296 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
298 #define PHYSFS_COMPILE_TIME_ASSERT(name, x) \
299 typedef int PHYSFS_dummy_ ## name[(x) * 2 - 1]
301 PHYSFS_COMPILE_TIME_ASSERT(uint8,
sizeof(PHYSFS_uint8) == 1);
302 PHYSFS_COMPILE_TIME_ASSERT(sint8,
sizeof(PHYSFS_sint8) == 1);
303 PHYSFS_COMPILE_TIME_ASSERT(uint16,
sizeof(PHYSFS_uint16) == 2);
304 PHYSFS_COMPILE_TIME_ASSERT(sint16,
sizeof(PHYSFS_sint16) == 2);
305 PHYSFS_COMPILE_TIME_ASSERT(uint32,
sizeof(PHYSFS_uint32) == 4);
306 PHYSFS_COMPILE_TIME_ASSERT(sint32,
sizeof(PHYSFS_sint32) == 4);
308 #ifndef PHYSFS_NO_64BIT_SUPPORT
309 PHYSFS_COMPILE_TIME_ASSERT(uint64,
sizeof(PHYSFS_uint64) == 8);
310 PHYSFS_COMPILE_TIME_ASSERT(sint64,
sizeof(PHYSFS_sint64) == 8);
313 #undef PHYSFS_COMPILE_TIME_ASSERT
358 #define PHYSFS_file PHYSFS_File
405 #ifndef DOXYGEN_SHOULD_IGNORE_THIS
406 #define PHYSFS_VER_MAJOR 2
407 #define PHYSFS_VER_MINOR 0
408 #define PHYSFS_VER_PATCH 3
430 #define PHYSFS_VERSION(x) \
432 (x)->major = PHYSFS_VER_MAJOR; \
433 (x)->minor = PHYSFS_VER_MINOR; \
434 (x)->patch = PHYSFS_VER_PATCH; \
882 const char *archiveExt,
1208 PHYSFS_uint32 objSize,
1209 PHYSFS_uint32 objCount);
1226 PHYSFS_uint32 objSize,
1227 PHYSFS_uint32 objCount);
2061 __EXPORT__
int PHYSFS_mount(
const char *newDir,
const char *mountPoint,
int appendToPath);