llvm.org GIT mirror llvm / da94248
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 Francois Pichet 8 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
113113 output_file = fopen(filename, "wb");
114114
115115 if (!output_file) {
116 const char *cptr = 0;
116117 filename[0] = '\0'; /* The size of filename should be big enough. */
117 char *cptr = strrchr(orig_filename, '/');
118 cptr = strrchr(orig_filename, '/');
118119 strcat(filename, cptr ? cptr + 1 : orig_filename);
119120 output_file = fopen(filename, "wb");
120121