Don't mark the PHYSFS_EnumFilesCallback _typedef_ as deprecated.

It upsets several compilers when building PhysicsFS itself.
This commit is contained in:
Ryan C. Gordon 2017-08-12 03:06:06 -04:00
parent 6da5bea804
commit 7fcddfb741
2 changed files with 2 additions and 3 deletions

View File

@ -2429,8 +2429,7 @@ int PHYSFS_enumerate(const char *_fn, PHYSFS_EnumerateCallback cb, void *data)
typedef struct
{
/* can't use the typedef because it might trigger deprecation warnings. */
void (*callback)(void *data, const char *origdir, const char *fname);
PHYSFS_EnumFilesCallback callback;
void *data;
} LegacyEnumFilesCallbackData;

View File

@ -2288,7 +2288,7 @@ typedef void (*PHYSFS_StringCallback)(void *data, const char *str);
* \sa PHYSFS_enumerateFilesCallback
*/
typedef void (*PHYSFS_EnumFilesCallback)(void *data, const char *origdir,
const char *fname) PHYSFS_DEPRECATED;
const char *fname);
/**