summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/imports.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-04-13 09:32:31 -0600
committerBrian Paul <[email protected]>2018-04-13 13:52:57 -0600
commit73f1e33d34b2044f2252a73e0fdd827d39724505 (patch)
tree28abd5471f60c384308911ed7981f5954f62d0f8 /src/mesa/main/imports.h
parent0a6547014fbe5371f5b7253f2c2640ad0026b184 (diff)
mesa: remove snprintf macro in imports.h to fix MSVC build
snprintf is a macro in the MSVC stdio.h header and we needed to include that header before imports.h where we also defined an snprintf macro. Otherwise, the MSVC build would fail. The recent mtypes.h removal patches seems to have exposed this issue. This patch simply removes our snprintf macro and replaces one use of it in teximage.c with _mesa_snprintf(). There are other calls to snprintf() in DRI drivers, but none of them are built on Windows. Reviewed-by: Charmaine Lee <[email protected]> Reviewed-by: Neha Bhende <[email protected]>
Diffstat (limited to 'src/mesa/main/imports.h')
-rw-r--r--src/mesa/main/imports.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 72ce8783ddb..a761f01851a 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -339,10 +339,6 @@ extern int
_mesa_vsnprintf(char *str, size_t size, const char *fmt, va_list arg);
-#if defined(_MSC_VER) && !defined(snprintf)
-#define snprintf _snprintf
-#endif
-
#if defined(_WIN32) && !defined(strtok_r)
#define strtok_r strtok_s
#endif