TwiceAsNice  2019-02-18
Macros | Typedefs
platformdefs.h File Reference
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <signal.h>
#include <time.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <ctype.h>
#include <errno.h>
#include <math.h>
#include <stdarg.h>
#include <stddef.h>
Include dependency graph for platformdefs.h:
This graph shows which files directly or indirectly include this file:

Macros

#define INVALID_HANDLE_VALUE   0xFFFFFFFF
 
#define CALLBACK
 
#define WINAPI
 
#define TRUE   1
 
#define FALSE   0
 
#define IN
 
#define DAQLIB
 
#define min(a, b)   (((a) < (b)) ? (a) : (b))
 
#define max(a, b)   (((a) > (b)) ? (a) : (b))
 
#define WSAEADDRINUSE   EADDRINUSE
 
#define WSAEADDRNOTAVAIL   EADDRNOTAVAIL
 
#define WSAEINVAL   EINVAL
 
#define WSAGetLastError()   errno
 
#define SOCKET_ERROR   (-1)
 
#define INFINITE   0xFFFFFFFF
 
#define DQ_INLINE   __inline
 
#define Sleep(a)   usleep((a)*1000)
 

Typedefs

typedef int SOCKET
 
typedef socklen_t SOCKLEN
 

Macro Definition Documentation

◆ CALLBACK

#define CALLBACK

◆ DAQLIB

#define DAQLIB

◆ DQ_INLINE

#define DQ_INLINE   __inline

◆ FALSE

#define FALSE   0

◆ IN

#define IN

◆ INFINITE

#define INFINITE   0xFFFFFFFF

◆ INVALID_HANDLE_VALUE

#define INVALID_HANDLE_VALUE   0xFFFFFFFF

◆ max

#define max (   a,
  b 
)    (((a) > (b)) ? (a) : (b))

◆ min

#define min (   a,
  b 
)    (((a) < (b)) ? (a) : (b))

◆ Sleep

#define Sleep (   a)    usleep((a)*1000)

◆ SOCKET_ERROR

#define SOCKET_ERROR   (-1)

◆ TRUE

#define TRUE   1

◆ WINAPI

#define WINAPI

◆ WSAEADDRINUSE

#define WSAEADDRINUSE   EADDRINUSE

◆ WSAEADDRNOTAVAIL

#define WSAEADDRNOTAVAIL   EADDRNOTAVAIL

◆ WSAEINVAL

#define WSAEINVAL   EINVAL

◆ WSAGetLastError

#define WSAGetLastError ( )    errno

Typedef Documentation

◆ SOCKET

typedef int SOCKET

◆ SOCKLEN

typedef socklen_t SOCKLEN