misc/libphyslayer/hwpacksmounter.c
branch0.9.24
changeset 13400 fa81f809fbb9
parent 13398 ae5d6448c5be
--- a/misc/libphyslayer/hwpacksmounter.c	Thu May 17 20:04:07 2018 -0400
+++ b/misc/libphyslayer/hwpacksmounter.c	Fri May 18 09:56:56 2018 -0400
@@ -49,12 +49,14 @@
 				{
 					if (strcmp(dir + dirLength - 4, ".hwp") == 0)
 					{
+#if PHYSFS_VER_MAJOR > 2 || PHYSFS_VER_MINOR > 0
 						char * uniqName = (char *)malloc(strlen(dir) + fileNameLength + 2);
 						strcpy(uniqName, dir);
 						strcat(uniqName, ",");
 						strcat(uniqName, fileName);
 						PHYSFS_mountHandle(PHYSFS_openRead(fileName), uniqName, NULL, 0);
 						free(uniqName);
+#endif
 					}
 					else
 					{