Skip to content

Commit

Permalink
Don't mark the PHYSFS_EnumFilesCallback _typedef_ as deprecated.
Browse files Browse the repository at this point in the history
It upsets several compilers when building PhysicsFS itself.
  • Loading branch information
icculus committed Aug 12, 2017
1 parent 6da5bea commit 7fcddfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/physfs.c
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/physfs.h
Expand Up @@ -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);


/**
Expand Down

0 comments on commit 7fcddfb

Please sign in to comment.