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 @@
1#ifndef _STDDEF_H1#ifndef _STDDEF_H
2#define _STDDEF_H2#define _STDDEF_H
3#define _TINYC_STDDEF
3 4
4typedef __SIZE_TYPE__ size_t;5typedef __SIZE_TYPE__ size_t;
5typedef __PTRDIFF_TYPE__ ssize_t;6typedef __PTRDIFF_TYPE__ ssize_t;
tests/tcctest.c+4−4
@@ -17,10 +17,6 @@ · 16 unmodified lines
17/* __VA_ARGS__ and __func__ support */17/* __VA_ARGS__ and __func__ support */
18#define C99_MACROS18#define C99_MACROS
19 19
20#ifndef __TINYC__
21typedef __SIZE_TYPE__ uintptr_t;
22#endif
23
24#if defined(_WIN32) \20#if defined(_WIN32) \
25 || (defined(__arm__) \21 || (defined(__arm__) \
26 && (defined(__FreeBSD__) \22 && (defined(__FreeBSD__) \
@@ -66,6 +62,10 @@ typedef __SIZE_TYPE__ uintptr_t; · 39 unmodified lines
66 62
67#include "tcctest.h"63#include "tcctest.h"
68 64
65#ifndef _TINYC_STDDEF
66#include <stdint.h>
67#endif
68
69/* Test two more ways to include a file named like a pp-number */69/* Test two more ways to include a file named like a pp-number */
70#define INC(name) <tests/name.h>70#define INC(name) <tests/name.h>
71#define funnyname 42test.h71#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