Modify whar_t and NULL for osx.
typedef long ptrdiff_t;
typedef unsigned long size_t;
typedef long double max_align_t;
+#ifdef __APPLE__
+typedef int wchar_t;
+#else
typedef unsigned int wchar_t;
+#endif
+#ifndef __APPLE__
#define NULL ((void *) 0)
+#endif
+
#define offsetof(type, member_designator) ((size_t) & ((type *) 0)->member_designator)
#endif /* #ifndef __STDDEF_H */
