30 lines
580 B
C
30 lines
580 B
C
#ifndef DEPLOYD_CLIENT_DEF_H_
|
|
#define DEPLOYD_CLIENT_DEF_H_
|
|
|
|
#include "conf.h"
|
|
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void *)0)
|
|
#endif /* NULL */
|
|
|
|
#ifndef DC_MALLOC
|
|
#define DC_MALLOC(size) malloc((size))
|
|
#endif /* DC_MALLOC */
|
|
|
|
#ifndef DC_CALLOC
|
|
#define DC_CALLOC(nmemb, size) calloc((nmemb), (size))
|
|
#endif /* DC_CALLOC */
|
|
|
|
#ifndef DC_FREE
|
|
#define DC_FREE(ptr) free((ptr))
|
|
#endif /* DC_FREE */
|
|
|
|
#ifndef DC_REALLOC
|
|
#define DC_REALLOC(ptr, size) realloc((ptr), (size))
|
|
#endif /* DC_REALLOC */
|
|
|
|
#endif /* DEPLOYD_CLIENT_DEF_H_ */
|