]> icculus.org git repositories - taylor/freespace2.git/blob - include/unix.h
Initial revision
[taylor/freespace2.git] / include / unix.h
1 // unix.h - duplicates some MS defines
2
3 #ifndef _UNIX_H
4 #define _UNIX_H
5
6 #include <stdio.h>
7 #include <sys/types.h>
8 #include <unistd.h>
9 #include "SDL.h"
10
11 #define DWORD int
12 #define _MAX_FNAME 255
13 #define _MAX_PATH 255
14 #define _MAX_DIR 256
15 #define MAX_FILENAME_LENGTH 64
16 #define _cdecl
17 #define __int64 long long
18 #define LARGE_INTEGER long long
19 #define stricmp strcasecmp
20 #define strnicmp strncasecmp
21 #define _strnicmp strncasecmp
22 #define _isnan isnan
23 #define HANDLE int
24 #define _getcwd getcwd
25 #define _chdir chdir
26 #define _strlwr strlwr
27 #define _unlink unlink
28 #define _mkdir mkdir
29 #define _hypot hypot
30 #define byte unsigned char
31
32 extern void strlwr (char *str);
33 extern int filelength (int fd);
34 extern int MulDiv (int, int, int);
35 #define CRITICAL_SECTION SDL_mutex*
36
37 #define STUB_FUNCTION fprintf(stderr,"STUB: %s at " __FILE__ ", line %d, thread %d\n",__FUNCTION__,__LINE__,getpid())
38 #endif
39