vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

u.h (496B)


      1 #if defined(linux) || defined(IRIX) || defined(SOLARIS) || defined(OSF1) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__) || defined(__sun) || defined(sun)
      2 #	include "unix.h"
      3 #	ifdef __APPLE__
      4 #		define panic dt_panic
      5 #	endif
      6 #elif defined(WINDOWS)
      7 #	include "9windows.h"
      8 #	define main mymain
      9 #else
     10 #	error "Define an OS"
     11 #endif
     12 
     13 #ifdef IRIX
     14 typedef int socklen_t;
     15 #endif
     16 
     17 #define nil ((void*)0)
     18 #define sleep _ksleep
     19 #define syscall _ksyscall
     20 #define atoi(x) strtol(x, 0, 0)