GNU libmicrohttpd  0.9.59
mhd_compat.h File Reference

Header for platform missing functions. More...

#include "mhd_options.h"
#include <stdlib.h>
Include dependency graph for mhd_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MHD_strerror_(errnum)   strerror((errnum))
 

Functions

void * MHD_calloc_ (size_t nelem, size_t elsize)
 

Detailed Description

Header for platform missing functions.

Author
Karlson2k (Evgeny Grin)

Provides compatibility for platforms with some missing functionality. Any functions can be implemented as macro on some platforms unless explicitly marked otherwise. Any function argument can be skipped in macro, so avoid variable modification in function parameters.

Definition in file mhd_compat.h.

Macro Definition Documentation

◆ MHD_strerror_

#define MHD_strerror_ (   errnum)    strerror((errnum))

Definition at line 44 of file mhd_compat.h.

Referenced by internal_add_connection(), and MHD_start_daemon_va().

Function Documentation

◆ MHD_calloc_()

void* MHD_calloc_ ( size_t  nelem,
size_t  elsize 
)

MHD_calloc_ is platform-independent calloc()

Definition at line 96 of file mhd_compat.c.

References NULL.

Referenced by internal_add_connection(), MHD_create_post_processor(), MHD_create_response_from_callback(), MHD_create_response_from_data(), MHD_queue_auth_fail_response(), and MHD_start_daemon_va().

Here is the caller graph for this function: