History

tests/tcctest.c: include stdint.h

despite being defined in tcc's own stddef.h, intended to be included by libtcc.h, libtcc.h actually included the libc's standard include tested on musl

noneofyourbusiness committed 1 year ago

Commit 8f239971 parent e7352982 files · +5 −4Browse files

Unified · Split

2 files
  1. include/stddef.h +1 −0
  2. tests/tcctest.c +4 −4
include/stddef.h+1−0
@@ -1,5 +1,6 @@
11 #ifndef _STDDEF_H
22 #define _STDDEF_H
3+#define _TINYC_STDDEF
34
45 typedef __SIZE_TYPE__ size_t;
56 typedef __PTRDIFF_TYPE__ ssize_t;
tests/tcctest.c+4−4
@@ -17,10 +17,6 @@ · 16 unmodified lines
1717 /* __VA_ARGS__ and __func__ support */
1818 #define C99_MACROS
1919
20−#ifndef __TINYC__
21−typedef __SIZE_TYPE__ uintptr_t;
22−#endif
23−
2420 #if defined(_WIN32) \
2521 || (defined(__arm__) \
2622 && (defined(__FreeBSD__) \
@@ -66,6 +62,10 @@ typedef __SIZE_TYPE__ uintptr_t; · 39 unmodified lines
6662
6763 #include "tcctest.h"
6864
65+#ifndef _TINYC_STDDEF
66+#include <stdint.h>
67+#endif
68+
6969 /* Test two more ways to include a file named like a pp-number */
7070 #define INC(name) <tests/name.h>
7171 #define funnyname 42test.h

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t