solved bug (forgot to include stddef.h)