#include <unistd.h>
#include "SDL.h"
#include "SDL_thread.h"
Go to the source code of this file.
 | 
| #define  | STUB_FUNCTION   nprintf(( "Warning", "STUB: %s in " __FILE__ " at line %d, thread %d\n", __FUNCTION__, __LINE__, getpid() )) | 
|   | 
| #define  | DEBUGME(d1)   nprintf(( "Warning", "DEBUGME: %s in " __FILE__ " at line %d, msg \"%s\", thread %d\n", __FUNCTION__, __LINE__, d1, getpid() )) | 
|   | 
| #define  | _cdecl | 
|   | 
| #define  | __cdecl | 
|   | 
| #define  | __stdcall | 
|   | 
| #define  | PASCAL | 
|   | 
| #define  | CALLBACK | 
|   | 
| #define  | WINAPI | 
|   | 
| #define  | FAR | 
|   | 
| #define  | __int64   long long int | 
|   | 
| #define  | __int32   int | 
|   | 
| #define  | SOCKET   int | 
|   | 
| #define  | SOCKADDR   struct sockaddr | 
|   | 
| #define  | SOCKADDR_IN   struct sockaddr_in | 
|   | 
| #define  | LPSOCKADDR   struct sockaddr* | 
|   | 
| #define  | HOSTENT   struct hostent | 
|   | 
| #define  | SERVENT   struct servent | 
|   | 
| #define  | closesocket(x)   close(x) | 
|   | 
| #define  | WSAEALREADY   EALREADY | 
|   | 
| #define  | WSAEINVAL   EINVAL | 
|   | 
| #define  | WSAEWOULDBLOCK   EINPROGRESS | 
|   | 
| #define  | WSAEISCONN   EISCONN | 
|   | 
| #define  | WSAENOTSOCK   ENOTSOCK | 
|   | 
| #define  | WSAECONNRESET   ECONNRESET | 
|   | 
| #define  | WSAECONNABORTED   ECONNABORTED | 
|   | 
| #define  | WSAESHUTDOWN   ESHUTDOWN | 
|   | 
| #define  | WSAEADDRINUSE   EADDRINUSE | 
|   | 
| #define  | SOCKET_ERROR   (-1) | 
|   | 
| #define  | ioctlsocket(x,  y,  z)   ioctl(x, y, z) | 
|   | 
| #define  | INVALID_SOCKET   ((SOCKET) -1) | 
|   | 
| #define  | WAVE_FORMAT_PCM   1 | 
|   | 
| #define  | WAVE_FORMAT_ADPCM   2 | 
|   | 
| #define  | WAVE_FORMAT_IEEE_FLOAT   3 | 
|   | 
| #define  | MB_ABORTRETRYIGNORE   0 | 
|   | 
| #define  | MB_CANCELTRYCONTINUE   0 | 
|   | 
| #define  | MB_HELP   0 | 
|   | 
| #define  | MB_OK   0 | 
|   | 
| #define  | MB_OKCANCEL   0 | 
|   | 
| #define  | MB_RETRYCANCEL   0 | 
|   | 
| #define  | MB_YESNO   0 | 
|   | 
| #define  | MB_YESNOCANCEL   0 | 
|   | 
| #define  | MB_ICONEXCLAMATION   0 | 
|   | 
| #define  | MB_ICONWARNING   0 | 
|   | 
| #define  | MB_ICONINFORMATION   0 | 
|   | 
| #define  | MB_ICONASTERISK   0 | 
|   | 
| #define  | MB_ICONQUESTION   0 | 
|   | 
| #define  | MB_ICONSTOP   0 | 
|   | 
| #define  | MB_ICONERROR   0 | 
|   | 
| #define  | MB_ICONHAND   0 | 
|   | 
| #define  | MB_DEFBUTTON1   0 | 
|   | 
| #define  | MB_DEFBUTTON2   0 | 
|   | 
| #define  | MB_DEFBUTTON3   0 | 
|   | 
| #define  | MB_DEFBUTTON4   0 | 
|   | 
| #define  | MB_APPLMODAL   0 | 
|   | 
| #define  | MB_SYSTEMMODAL   0 | 
|   | 
| #define  | MB_TASKMODAL   0 | 
|   | 
| #define  | MB_DEFAULT_DESKTOP_ONLY   0 | 
|   | 
| #define  | MB_RIGHT   0 | 
|   | 
| #define  | MB_RTLREADING   0 | 
|   | 
| #define  | MB_SETFOREGROUND   0 | 
|   | 
| #define  | MB_TOPMOST   0 | 
|   | 
| #define  | MB_SERVICE_NOTIFICATION   0 | 
|   | 
| #define  | MB_SERVICE_NOTIFICATION_NT3X   0 | 
|   | 
| #define  | _beginthread(x,  y,  z) | 
|   | 
| #define  | _endthread() | 
|   | 
| #define  | _MAX_FNAME   255 | 
|   | 
| #define  | _MAX_PATH   255 | 
|   | 
| #define  | MAX_PATH   255 | 
|   | 
| #define  | SetCurrentDirectory(s)   _chdir(s) | 
|   | 
| #define  | GetCurrentDirectory(i,  s)   _getcwd((s), (i)) | 
|   | 
| #define  | _unlink(s)   unlink(s) | 
|   | 
| #define  | FOURCC_MEM   0 | 
|   | 
| #define  | MMIO_READ   (1<<0) | 
|   | 
| #define  | MMIO_READWRITE   (1<<1) | 
|   | 
| #define  | MMIO_WRITE   (1<<2) | 
|   | 
| #define  | MMIO_ALLOCBUF   (1<<3) | 
|   | 
| #define  | MMIOERR_CANNOTWRITE   1 | 
|   | 
| #define  | stricmp(s1,  s2)   strcasecmp((s1), (s2)) | 
|   | 
| #define  | strnicmp(s1,  s2,  n)   strncasecmp((s1), (s2), (n)) | 
|   | 
| #define  | _strnicmp(s1,  s2,  n)   strncasecmp((s1), (s2), (n)) | 
|   | 
| #define  | _strlwr(s)   strlwr(s) | 
|   | 
| #define  | _isnan(f)         isnan(f) | 
|   | 
| #define  | _hypot(x,  y)   hypot(x, y) | 
|   | 
 | 
| int  | MessageBox (HWND h, const char *s1, const char *s2, int i) | 
|   | 
| bool  | QueryPerformanceCounter (LARGE_INTEGER *pcount) | 
|   | 
| HMMIO  | mmioOpen (LPSTR szFilename, LPMMIOINFO lpmmioinfo, DWORD dwOpenFlags) | 
|   | 
| long  | mmioSeek (HMMIO hmmio, long lOffset, int iOrigin) | 
|   | 
| long  | mmioRead (HMMIO hmmio, HPSTR pch, long cch) | 
|   | 
| MMRESULT  | mmioClose (HMMIO hmmio, uint wFlags) | 
|   | 
| int  | filelength (int fd) | 
|   | 
| int  | _chdir (const char *path) | 
|   | 
| int  | _getcwd (char *buffer, unsigned int len) | 
|   | 
| int  | _mkdir (const char *path) | 
|   | 
| void  | _splitpath (char *path, char *drive, char *dir, char *fname, char *ext) | 
|   | 
| void  | strlwr (char *s) | 
|   | 
| char *  | strnset (char *string, int fill, size_t count) | 
|   | 
| int  | MulDiv (int number, int numerator, int denominator) | 
|   | 
| void  | Sleep (int mili) | 
|   | 
      
        
          | #define __int64   long long int | 
        
      
 
 
      
        
          | #define _beginthread | 
          ( | 
            | 
          x,  | 
        
        
           | 
           | 
            | 
          y,  | 
        
        
           | 
           | 
            | 
          z  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | #define _hypot | 
          ( | 
            | 
          x,  | 
        
        
           | 
           | 
            | 
          y  | 
        
        
           | 
          ) | 
           |    hypot(x, y) | 
        
      
 
 
      
        
          | #define _isnan | 
          ( | 
            | 
          f | ) | 
             isnan(f) | 
        
      
 
 
      
        
          | #define _strnicmp | 
          ( | 
            | 
          s1,  | 
        
        
           | 
           | 
            | 
          s2,  | 
        
        
           | 
           | 
            | 
          n  | 
        
        
           | 
          ) | 
           |    strncasecmp((s1), (s2), (n)) | 
        
      
 
 
      
        
          | #define _unlink | 
          ( | 
            | 
          s | ) | 
             unlink(s) | 
        
      
 
 
      
        
          | #define closesocket | 
          ( | 
            | 
          x | ) | 
             close(x) | 
        
      
 
 
      
        
          | #define DEBUGME | 
          ( | 
            | 
          d1 | ) | 
             nprintf(( "Warning", "DEBUGME: %s in " __FILE__ " at line %d, msg \"%s\", thread %d\n", __FUNCTION__, __LINE__, d1, getpid() )) | 
        
      
 
 
      
        
          | #define HOSTENT   struct hostent | 
        
      
 
 
      
        
          | #define INVALID_SOCKET   ((SOCKET) -1) | 
        
      
 
 
      
        
          | #define ioctlsocket | 
          ( | 
            | 
          x,  | 
        
        
           | 
           | 
            | 
          y,  | 
        
        
           | 
           | 
            | 
          z  | 
        
        
           | 
          ) | 
           |    ioctl(x, y, z) | 
        
      
 
 
      
        
          | #define LPSOCKADDR   struct sockaddr* | 
        
      
 
 
      
        
          | #define MB_ABORTRETRYIGNORE   0 | 
        
      
 
 
      
        
          | #define MB_CANCELTRYCONTINUE   0 | 
        
      
 
 
      
        
          | #define MB_DEFAULT_DESKTOP_ONLY   0 | 
        
      
 
 
      
        
          | #define MB_ICONASTERISK   0 | 
        
      
 
 
      
        
          | #define MB_ICONEXCLAMATION   0 | 
        
      
 
 
      
        
          | #define MB_ICONINFORMATION   0 | 
        
      
 
 
      
        
          | #define MB_ICONQUESTION   0 | 
        
      
 
 
      
        
          | #define MB_SERVICE_NOTIFICATION   0 | 
        
      
 
 
      
        
          | #define MB_SERVICE_NOTIFICATION_NT3X   0 | 
        
      
 
 
      
        
          | #define MB_SETFOREGROUND   0 | 
        
      
 
 
      
        
          | #define MMIO_ALLOCBUF   (1<<3) | 
        
      
 
 
      
        
          | #define MMIO_READWRITE   (1<<1) | 
        
      
 
 
      
        
          | #define MMIO_WRITE   (1<<2) | 
        
      
 
 
      
        
          | #define MMIOERR_CANNOTWRITE   1 | 
        
      
 
 
      
        
          | #define SERVENT   struct servent | 
        
      
 
 
      
        
          | #define SetCurrentDirectory | 
          ( | 
            | 
          s | ) | 
             _chdir(s) | 
        
      
 
 
      
        
          | #define SOCKADDR   struct sockaddr | 
        
      
 
 
      
        
          | #define SOCKADDR_IN   struct sockaddr_in | 
        
      
 
 
      
        
          | #define SOCKET_ERROR   (-1) | 
        
      
 
 
      
        
          | #define stricmp | 
          ( | 
            | 
          s1,  | 
        
        
           | 
           | 
            | 
          s2  | 
        
        
           | 
          ) | 
           |    strcasecmp((s1), (s2)) | 
        
      
 
 
      
        
          | #define strnicmp | 
          ( | 
            | 
          s1,  | 
        
        
           | 
           | 
            | 
          s2,  | 
        
        
           | 
           | 
            | 
          n  | 
        
        
           | 
          ) | 
           |    strncasecmp((s1), (s2), (n)) | 
        
      
 
 
      
        
          | #define STUB_FUNCTION   nprintf(( "Warning", "STUB: %s in " __FILE__ " at line %d, thread %d\n", __FUNCTION__, __LINE__, getpid() )) | 
        
      
 
 
      
        
          | #define WAVE_FORMAT_ADPCM   2 | 
        
      
 
 
      
        
          | #define WAVE_FORMAT_IEEE_FLOAT   3 | 
        
      
 
 
      
        
          | #define WAVE_FORMAT_PCM   1 | 
        
      
 
 
      
        
          | #define WSAEADDRINUSE   EADDRINUSE | 
        
      
 
 
      
        
          | #define WSAEALREADY   EALREADY | 
        
      
 
 
      
        
          | #define WSAECONNABORTED   ECONNABORTED | 
        
      
 
 
      
        
          | #define WSAECONNRESET   ECONNRESET | 
        
      
 
 
      
        
          | #define WSAEISCONN   EISCONN | 
        
      
 
 
      
        
          | #define WSAENOTSOCK   ENOTSOCK | 
        
      
 
 
      
        
          | #define WSAESHUTDOWN   ESHUTDOWN | 
        
      
 
 
      
        
          | #define WSAEWOULDBLOCK   EINPROGRESS | 
        
      
 
 
      
        
          | typedef unsigned long DWORD | 
        
      
 
 
      
        
          | typedef unsigned long * PDWORD | 
        
      
 
 
      
        
          | typedef unsigned short WORD | 
        
      
 
 
      
        
          | int _chdir  | 
          ( | 
          const char *  | 
          path | ) | 
           | 
        
      
 
 
      
        
          | int _getcwd  | 
          ( | 
          char *  | 
          buffer,  | 
        
        
           | 
           | 
          unsigned int  | 
          len  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | int _mkdir  | 
          ( | 
          const char *  | 
          path | ) | 
           | 
        
      
 
 
      
        
          | void _splitpath  | 
          ( | 
          char *  | 
          path,  | 
        
        
           | 
           | 
          char *  | 
          drive,  | 
        
        
           | 
           | 
          char *  | 
          dir,  | 
        
        
           | 
           | 
          char *  | 
          fname,  | 
        
        
           | 
           | 
          char *  | 
          ext  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | int MessageBox  | 
          ( | 
          HWND  | 
          h,  | 
        
        
           | 
           | 
          const char *  | 
          s1,  | 
        
        
           | 
           | 
          const char *  | 
          s2,  | 
        
        
           | 
           | 
          int  | 
          i  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | long mmioRead  | 
          ( | 
          HMMIO  | 
          hmmio,  | 
        
        
           | 
           | 
          HPSTR  | 
          pch,  | 
        
        
           | 
           | 
          long  | 
          cch  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | long mmioSeek  | 
          ( | 
          HMMIO  | 
          hmmio,  | 
        
        
           | 
           | 
          long  | 
          lOffset,  | 
        
        
           | 
           | 
          int  | 
          iOrigin  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | char* strnset  | 
          ( | 
          char *  | 
          string,  | 
        
        
           | 
           | 
          int  | 
          fill,  | 
        
        
           | 
           | 
          size_t  | 
          count  | 
        
        
           | 
          ) | 
           |  |