GNU libmicrohttpd  0.9.29
platform.h File Reference

platform-specific includes for libmicrohttpd More...

#include "MHD_config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stddef.h>
Include dependency graph for platform.h:

Go to the source code of this file.

Macros

#define _MHD_EXTERN   extern
 
#define _XOPEN_SOURCE_EXTENDED   1
 
#define MHD_POSIX_SOCKETS   1
 
#define MHD_INVALID_SOCKET   (-1)
 
#define MHD_SOCKET_DEFINED   1
 

Typedefs

typedef int MHD_socket
 
typedef time_t _MHD_TIMEVAL_TV_SEC_TYPE
 
typedef int MHD_pipe
 

Detailed Description

platform-specific includes for libmicrohttpd

Author
Christian Grothoff

This file is included by the libmicrohttpd code before "microhttpd.h"; it provides the required standard headers (which are platform-specific).

Note that this file depends on our configure.ac build process and the generated config.h file. Hence you cannot include it directly in applications that use libmicrohttpd.

Definition in file platform.h.

Macro Definition Documentation

#define _MHD_EXTERN   extern

Definition at line 48 of file platform.h.

#define _XOPEN_SOURCE_EXTENDED   1

Definition at line 60 of file platform.h.

#define MHD_INVALID_SOCKET   (-1)

Definition at line 182 of file platform.h.

#define MHD_POSIX_SOCKETS   1

MHD_socket is type for socket FDs

Definition at line 180 of file platform.h.

#define MHD_SOCKET_DEFINED   1

Definition at line 189 of file platform.h.

Typedef Documentation

typedef time_t _MHD_TIMEVAL_TV_SEC_TYPE

Definition at line 193 of file platform.h.

typedef int MHD_pipe

Definition at line 205 of file platform.h.

typedef int MHD_socket

Definition at line 181 of file platform.h.