Get the version of PhysicsFS that is linked against your program.
Defined in <physfs.h>
void PHYSFS_getLinkedVersion(PHYSFS_Version *ver);| PHYSFS_Version * | ver | the PHYSFS_Version struct to fill in. |
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:
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);This function may be called safely at any time, even before PHYSFS_init().
It is safe to call this function from any thread.
This function is available since PhysicsFS 1.0.0.