Skip to content
Permalink
Browse files
Don't mark the PHYSFS_EnumFilesCallback _typedef_ as deprecated.
It upsets several compilers when building PhysicsFS itself.
  • Loading branch information
icculus committed Aug 12, 2017
1 parent 6da5bea commit 7fcddfb741922d609e5a7410bf3d03ea15c497f0
Showing with 2 additions and 3 deletions.
  1. +1 −2 src/physfs.c
  2. +1 −1 src/physfs.h
@@ -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;

@@ -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);


/**

0 comments on commit 7fcddfb

Please sign in to comment.