1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-27 10:14:28 +01:00

Added include of 'stddef.h' to 'unity_internals.h' if 'UNITY_EXCLUDE_STDDEF_H' is not defined. This adds compiler independent support for the 'NULL' macro.

This commit is contained in:
Fabian Zahn
2018-10-14 14:08:09 +02:00
parent 9987824da7
commit e2e549a22f
2 changed files with 16 additions and 0 deletions

View File

@@ -19,6 +19,10 @@
#include <math.h>
#endif
#ifndef UNITY_EXCLUDE_STDDEF_H
#include <stddef.h>
#endif
/* Unity Attempts to Auto-Detect Integer Types
* Attempt 1: UINT_MAX, ULONG_MAX in <limits.h>, or default to 32 bits
* Attempt 2: UINTPTR_MAX in <stdint.h>, or default to same size as long