News for hackers. Stuff that matters.
Re:Visual C++ Cross-Platform Mobile by aninteger on Friday April 24, 2015 @02:22PM (#9435128)
I haven't used Visual Studio to compile C in a long long time, but does it support compiling files as C files as well? For example:

char ptr = malloc(10); // this is not valid C++

vs

char ptr = (char *)malloc(10); // This is usually required for Visual C++ (or was).

Re:Visual C++ Cross-Platform Mobile by cmircea on Friday April 24, 2015 @02:49PM (#9435306)
Yes, on the properties of the file you can specify whether to compile as C or C++. It can also be set as a project default.

I believe files with the .c extensions are compiled as C, not C++.

Re:Visual C++ Cross-Platform Mobile by billforsternz on Friday April 24, 2015 @07:26PM (#9436512)
Please edit to add an asterisk in front of ptr in both cases.
Re:Visual C++ Cross-Platform Mobile by awalton on Friday April 24, 2015 @09:05PM (#9436758)
It's the markdown getting in the way. You can tell by the varying italics.
Re:Visual C++ Cross-Platform Mobile by billforsternz on Friday April 24, 2015 @11:50PM (#9437130)
Indeed. Still needs to be fixed.