author | Ryan C. Gordon <icculus@icculus.org> |
Fri, 06 Jul 2001 02:33:21 +0000 | |
changeset 10 | 45bd486c0224 |
parent 4 | b8107374195a |
child 11 | 677e01f5109e |
permissions | -rw-r--r-- |
4 | 1 |
/* |
2 |
* Unix support routines for PhysicsFS. |
|
3 |
* |
|
4 |
* Please see the file LICENSE in the source's root directory. |
|
5 |
* |
|
6 |
* This file written by Ryan C. Gordon. |
|
7 |
*/ |
|
8 |
||
9 |
#include <stdio.h> |
|
10 |
#include <stdlib.h> |
|
11 |
#include <pthread.h> |
|
12 |
||
10
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
13 |
#define __PHYSICSFS_INTERNAL__ |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
14 |
#include "physfs_internal.h" |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
15 |
|
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
16 |
|
4 | 17 |
const char *__PHYSFS_PlatformDirSeparator = "/"; |
18 |
||
19 |
char **__PHYSFS_platformDetectAvailableCDs(void) |
|
20 |
{ |
|
21 |
} /* __PHYSFS_detectAvailableCDs */ |
|
22 |
||
23 |
||
24 |
char *__PHYSFS_platformCalcBaseDir(char *argv0) |
|
25 |
{ |
|
26 |
return(NULL); |
|
27 |
} /* __PHYSFS_platformCalcBaseDir */ |
|
28 |
||
29 |
||
30 |
int __PHYSFS_platformGetThreadID(void) |
|
31 |
{ |
|
32 |
return((int) pthread_self()); |
|
33 |
} /* __PHYSFS_platformGetThreadID */ |
|
34 |
||
10
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
35 |
|
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
36 |
int __PHYSFS_platformStricmp(const char *str1, const char *str2) |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
37 |
{ |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
38 |
return(strcasecmp(str1, str2)); |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
39 |
} /* __PHYSFS_platformStricmp */ |
45bd486c0224
Added stricmp stuff and included physfs_internal.h ...
Ryan C. Gordon <icculus@icculus.org>
parents:
4
diff
changeset
|
40 |
|
4 | 41 |
/* end of unix.c ... */ |
42 |