projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e70972a
)
[runtime] Prefer eglib's g_snprintf as snprintf does not work under all platforms.
author
João Matos
<joao@tritao.eu>
Mon, 8 Jun 2015 15:05:10 +0000
(16:05 +0100)
committer
João Matos
<joao@tritao.eu>
Mon, 8 Jun 2015 15:05:10 +0000
(16:05 +0100)
Fixes the MSVC build.
mono/utils/mono-threads.h
patch
|
blob
|
history
diff --git
a/mono/utils/mono-threads.h
b/mono/utils/mono-threads.h
index dbf019cffaf6b3679c51f1156349e49ba4a964c1..edbf934ac9bf7321a524a47459231121c00d9f40 100644
(file)
--- a/
mono/utils/mono-threads.h
+++ b/
mono/utils/mono-threads.h
@@
-88,7
+88,7
@@
and reduce the number of casts drastically.
/* Logging - enable them below if you need specific logging for the category you need */
#define MOSTLY_ASYNC_SAFE_PRINTF(...) do { \
char __buff[1024]; __buff [0] = '\0'; \
-
snprintf (__buff, sizeof (__buff), __VA_ARGS__);
\
+
g_snprintf (__buff, sizeof (__buff), __VA_ARGS__);
\
write (1, __buff, strlen (__buff)); \
} while (0)