Bladeren bron

Added stricmp stuff and included physfs_internal.h ...

Ryan C. Gordon 25 jaren geleden
bovenliggende
commit
b7db28940e
1 gewijzigde bestanden met toevoegingen van 10 en 0 verwijderingen
  1. 10 0
      unix.c

+ 10 - 0
unix.c

@@ -10,6 +10,10 @@
 #include <stdlib.h>
 #include <pthread.h>
 
+#define __PHYSICSFS_INTERNAL__
+#include "physfs_internal.h"
+
+
 const char *__PHYSFS_PlatformDirSeparator = "/";
 
 char **__PHYSFS_platformDetectAvailableCDs(void)
@@ -28,5 +32,11 @@ int __PHYSFS_platformGetThreadID(void)
     return((int) pthread_self());
 } /* __PHYSFS_platformGetThreadID */
 
+
+int __PHYSFS_platformStricmp(const char *str1, const char *str2)
+{
+    return(strcasecmp(str1, str2));
+} /* __PHYSFS_platformStricmp */
+
 /* end of unix.c ... */