Further fix 1984/decot for clang (for linux)
Although my change of not requiring -traditional-cpp worked in macOS it turns out one change had to be made for clang in linux which has now been done.
This commit is contained in:
1 parent
ed04ae0a9e
commit
f27438b248
2 files changed
+5
-3
No files matched your search
+1
-1
@@ -20,7 +20,7 @@ _O: while (!(k['a'] <<= - dup)) { /*/*\*/
|
|||||||
while(b = 3, i); {
|
while(b = 3, i); {
|
||||||
k['a'] = b,i;
|
k['a'] = b,i;
|
||||||
_0:if(b&&(int)k+
|
_0:if(b&&(int)k+
|
||||||
sin(signal) / * ((main) (((struct tag *)b)-> xO)));/*}
|
sin(signal) / * ((main) (*((struct tag *)b)-> xO)));/*}
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -64,8 +64,10 @@ Scovell](https://web.archive.org/web/20070120220721/https://thomasscovell.com/ta
|
|||||||
Cody fixed this to not require `-traditional-cpp` which not all compilers
|
Cody fixed this to not require `-traditional-cpp` which not all compilers
|
||||||
support (clang does not support it for example). Clang is also more strict about
|
support (clang does not support it for example). Clang is also more strict about
|
||||||
the args' types in `main()` and this was also a problem that Cody fixed, making
|
the args' types in `main()` and this was also a problem that Cody fixed, making
|
||||||
it work with both clang and gcc. For the original code with the gcc fix
|
it work with both clang and gcc - in macOS. It was then noticed that with clang
|
||||||
described below, see the alternate code section in the README.md file.
|
in linux it did not work so this had to be further fixed which Cody also did.
|
||||||
|
For the original code with the gcc fix (noted below), see the alternate code
|
||||||
|
section in the README.md file.
|
||||||
|
|
||||||
Originally Yusuke supplied a patch so that this entry would compile with gcc -
|
Originally Yusuke supplied a patch so that this entry would compile with gcc -
|
||||||
but not clang - or at least some versions.
|
but not clang - or at least some versions.
|
||||||
|
|||||||
Reference in new issue
Block a user