Function physfs_sys::PHYSFS_getLinkedVersion[][src]

pub unsafe extern "C" fn PHYSFS_getLinkedVersion(
    ver: *mut PHYSFS_Version
)
Expand description

\fn void PHYSFS_getLinkedVersion(PHYSFS_Version *ver) \brief Get the version of PhysicsFS that is linked against your program.

If you are using a shared library (DLL) version of PhysFS, then it is possible that it will be different than the version you compiled against.

This is a real function; the macro PHYSFS_VERSION tells you what version of PhysFS you compiled against:

\code PHYSFS_Version compiled; PHYSFS_Version linked;

PHYSFS_VERSION(&compiled); PHYSFS_getLinkedVersion(&linked); printf(“We compiled against PhysFS version %d.%d.%d …\n”, compiled.major, compiled.minor, compiled.patch); printf(“But we linked against PhysFS version %d.%d.%d.\n”, linked.major, linked.minor, linked.patch); \endcode

This function may be called safely at any time, even before PHYSFS_init().

\sa PHYSFS_VERSION