A macro to tag a symbol as deprecated.
Defined in <physfs.h>
#define PHYSFS_DEPRECATED __attribute__((deprecated))A function is marked deprecated by adding this macro to its declaration:
extern PHYSFS_DEPRECATED int ThisFunctionWasABadIdea(void);Compilers with deprecation support can give a warning when a deprecated function is used. This symbol may be used in PhysicsFS's headers, but apps are welcome to use it for their own interfaces as well.
PhysicsFS, on occasion, might deprecate a function for various reasons. However, PhysicsFS never removes symbols before major versions, at a minimum, so deprecated interfaces in PhysicsFS 3 will remain available at least until PhysicsFS 4, where it would be expected an app would have to take steps to migrate anyhow.
Historically, PhysicsFS has never removed a deprecated symbol, but this is not promised forever!
On compilers without a deprecation mechanism, this is defined to nothing, and using a deprecated function will not generate a warning.
This macro is available since PhysicsFS 2.1.0.