Macro to determine PhysicsFS version program was compiled against.
Defined in <physfs.h>
#define PHYSFS_VERSION(x) \
{ \
(x)->major = PHYSFS_VER_MAJOR; \
(x)->minor = PHYSFS_VER_MINOR; \
(x)->patch = PHYSFS_VER_PATCH; \
}| x | A pointer to a PHYSFS_Version struct to initialize. |
This macro fills in a PHYSFS_Version structure with the version of the library you compiled against. This is determined by what header the compiler uses. Note that if you dynamically linked the library, you might have a slightly newer or older version at runtime. That version can be determined with PHYSFS_getLinkedVersion(), which, unlike PHYSFS_VERSION, is not a macro.
It is safe to call this macro from any thread.
This macro is available since PhysicsFS 1.0.0.