Skip to content

Commit

Permalink
add stdlib ptrdiff_t, max_align_t
Browse files Browse the repository at this point in the history
  • Loading branch information
twiddlingbits committed Apr 28, 2024
1 parent 14bf3d3 commit 2d85513
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/stdlib-include/stddef.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@ typedef twr_size_t size_t;
#define MAX_SIZE_T TWR_MAX_SIZE_T // size_t max
#define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER)

typedef __PTRDIFF_TYPE__ ptrdiff_t;

typedef double max_align_t;

#endif /* __TINY_STDDEF_H__ */

0 comments on commit 2d85513

Please sign in to comment.