瀏覽代碼

Initial add.

Ryan C. Gordon 25 年之前
父節點
當前提交
655524c506
共有 1 個文件被更改,包括 32 次插入0 次删除
  1. 32 0
      unix.c

+ 32 - 0
unix.c

@@ -0,0 +1,32 @@
+/*
+ * Unix support routines for PhysicsFS.
+ *
+ * Please see the file LICENSE in the source's root directory.
+ *
+ *  This file written by Ryan C. Gordon.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <pthread.h>
+
+const char *__PHYSFS_PlatformDirSeparator = "/";
+
+char **__PHYSFS_platformDetectAvailableCDs(void)
+{
+} /* __PHYSFS_detectAvailableCDs */
+
+
+char *__PHYSFS_platformCalcBaseDir(char *argv0)
+{
+    return(NULL);
+} /* __PHYSFS_platformCalcBaseDir */
+
+
+int __PHYSFS_platformGetThreadID(void)
+{
+    return((int) pthread_self());
+} /* __PHYSFS_platformGetThreadID */
+
+/* end of unix.c ... */
+