Browse Source

PHYSFS_file is now PHYSFS_File to match 2.0 API (but has a typedef for
legacy support).

Ryan C. Gordon 21 năm trước cách đây
mục cha
commit
c5bf5c15d7
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      physfs.h

+ 2 - 1
physfs.h

@@ -269,8 +269,9 @@ PHYSFS_COMPILE_TIME_ASSERT(sint64, sizeof(PHYSFS_sint64) == 8);
 typedef struct
 {
     void *opaque;  /**< That's all you get. Don't touch. */
-} PHYSFS_file;
+} PHYSFS_File;
 
+typedef PHYSFS_File PHYSFS_file;  /* for backwards compatibility with 1.0 */
 
 
 /**