mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-12 04:26:43 +00:00
MSVC doesn't like the mixing of declarations and statements in a .c file.
llvm-svn: 153549
This commit is contained in:
parent
4be5a4bca4
commit
d04f23f329
@ -114,8 +114,9 @@ void llvm_gcda_start_file(const char *orig_filename) {
|
|||||||
output_file = fopen(filename, "wb");
|
output_file = fopen(filename, "wb");
|
||||||
|
|
||||||
if (!output_file) {
|
if (!output_file) {
|
||||||
|
const char *cptr = 0;
|
||||||
filename[0] = '\0'; /* The size of filename should be big enough. */
|
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);
|
strcat(filename, cptr ? cptr + 1 : orig_filename);
|
||||||
output_file = fopen(filename, "wb");
|
output_file = fopen(filename, "wb");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user