mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
MSVC doesn't like the mixing of declarations and statements in a .c file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153549 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f2fd23b062
commit
da942482a3
@ -114,8 +114,9 @@ void llvm_gcda_start_file(const char *orig_filename) {
|
||||
output_file = fopen(filename, "wb");
|
||||
|
||||
if (!output_file) {
|
||||
const char *cptr = 0;
|
||||
filename[0] = '\0'; /* The size of filename should be big enough. */
|
||||
char *cptr = strrchr(orig_filename, '/');
|
||||
cptr = strrchr(orig_filename, '/');
|
||||
strcat(filename, cptr ? cptr + 1 : orig_filename);
|
||||
output_file = fopen(filename, "wb");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user