diff options
author | Karl Schultz <[email protected]> | 2004-08-14 19:28:48 +0000 |
---|---|---|
committer | Karl Schultz <[email protected]> | 2004-08-14 19:28:48 +0000 |
commit | cec756ae3a4639d2ceb9bbe2c119ccc00d8554b7 (patch) | |
tree | 793ba7d808ef0a610dc0ac1c06cb24b2fdf2675e /src | |
parent | 4d69189ac022202221025298217fabcf656477ae (diff) |
Minor tweaks to deal with vsnprintf and __FUNCTION__ on WIN32
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/tnl/t_vertex_c.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/mesa/tnl/t_vertex_c.c b/src/mesa/tnl/t_vertex_c.c index 9d18b23fc78..a0ec4894054 100644 --- a/src/mesa/tnl/t_vertex_c.c +++ b/src/mesa/tnl/t_vertex_c.c @@ -34,6 +34,10 @@ #include "simple_list.h" +#ifdef WIN32 +#define vsnprintf _vsnprintf +#endif + /* A version of code generation for t_clipspace_codegen.c which prints * out 'c' code to implement the generated function. A useful * debugging tool, and in concert with something like tcc or a @@ -230,8 +234,11 @@ static GLboolean print_attr_footer( struct tnl_clipspace_codegen *p ) static tnl_emit_func print_store_func( struct tnl_clipspace_codegen *p ) { +#ifdef WIN32 + fprintf(stderr, "%s: emitted:\n%s\n", "print_store_func", p->buf); +#else fprintf(stderr, "%s: emitted:\n%s\n", __FUNCTION__, p->buf); - +#endif return 0; } |