mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-26 03:50:07 +08:00
tccpp: #define max(a,b) && max /= 8;
This fixes 20a1ebf854
where the '/' above was lost when max() was defined
Also: ignore binary files with -E (for example 'tcc -lxxx -E ...')
This commit is contained in:
parent
0fd7376000
commit
aef64762c1
5
libtcc.c
5
libtcc.c
@ -1039,6 +1039,11 @@ ST_FUNC int tcc_add_file_internal(TCCState *s1, const char *filename, int flags)
|
||||
filename = buf;
|
||||
#endif
|
||||
|
||||
/* ignore binary files with -E */
|
||||
if (s1->output_type == TCC_OUTPUT_PREPROCESS
|
||||
&& (flags & AFF_TYPE_BIN))
|
||||
return 0;
|
||||
|
||||
/* open the file */
|
||||
fd = _tcc_open(s1, filename);
|
||||
if (fd < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user