[Mesa-dev] [PATCH 1/2] util: add util_vasprintf() for Windows (v2)

2017-09-27 Thread Brian Paul
We don't have vasprintf() on Windows so we need to implement it ourselves. v2: compute actual length of output string, per Nicolai Hähnle. --- src/util/u_string.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/util/u_string.h b/src/util/u_string.h index e88e13f..4

[Mesa-dev] [PATCH 1/2] util: add util_vasprintf() for Windows (v2)

2017-09-25 Thread Brian Paul
We don't have vasprintf() on Windows so we need to implement it ourselves. v2: compute actual length of output string, per Nicolai Hähnle. --- src/util/u_string.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/util/u_string.h b/src/util/u_string.h index e88e13f..4

Re: [Mesa-dev] [PATCH 1/2] util: add util_vasprintf() for Windows

2017-09-09 Thread Nicolai Hähnle
On 09.09.2017 00:55, Brian Paul wrote: We don't have vasprintf() on Windows so we need to implement it ourselves. Since we don't know the length of the final string, take a guess at 1 chars. --- src/util/u_string.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/util/u

[Mesa-dev] [PATCH 1/2] util: add util_vasprintf() for Windows

2017-09-08 Thread Brian Paul
We don't have vasprintf() on Windows so we need to implement it ourselves. Since we don't know the length of the final string, take a guess at 1 chars. --- src/util/u_string.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/util/u_string.h b/src/util/u_string.h index e88e1