src: shared: helpers: add missing includes to header

Needed for clang-tidy prep work, as it requires headers to work standalone
(which is useful anyway).
This commit is contained in:
Sam James 2023-01-29 03:23:46 +00:00 committed by William Hubbs
parent 2f6b5b7ef4
commit dc0b3157a9

View File

@ -18,6 +18,10 @@
#ifndef __HELPERS_H__ #ifndef __HELPERS_H__
#define __HELPERS_H__ #define __HELPERS_H__
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ERRX fprintf (stderr, "out of memory\n"); exit (1) #define ERRX fprintf (stderr, "out of memory\n"); exit (1)
#define UNCONST(a) ((void *)(unsigned long)(const void *)(a)) #define UNCONST(a) ((void *)(unsigned long)(const void *)(a))