[Mesa-dev] [PATCH] glsl / imports.h: fix MSVC build
brianp at vmware.com
Tue Aug 24 07:04:03 PDT 2010
On 08/24/2010 01:41 AM, Aras Pranckevicius wrote:
> > Could be; I'm not actually building full Mesa (just the GLSL
> compiler). At
> > least for snprintf, in MSVC it's _snprintf; no idea about others
> right now.
> Hmm, they are used by the new GLSL compiler (src/glsl/).
> Indeed, they are used by preprocessor (which I was not building before).
> Attached patch adds isspace(), strtoll() for MSVC, and fixes class vs
> struct mixage (MSVC really does not like "class" keyword when compiling
> C code).
Your patch doesn't seem to be up to date with the latest code from git.
The strtoll() #define should be put in the imports.h file.
Perhaps you can update your patch for today's git code.
I'll commit the isblank() function to imports.h though.
More information about the mesa-dev