blob: dc0a7599770a64b03992bad0b7ea880b78fc7cc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Linus Groh <mail@linusgroh.de>
Date: Sat, 13 Mar 2021 22:11:07 +0100
Subject: [PATCH] Let c-ray define its own version of vasprintf
Co-Authored-By: Valtteri Koskivuori <vkoskiv@gmail.com>
---
src/libraries/asprintf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libraries/asprintf.h b/src/libraries/asprintf.h
index 70a95ac..7571e8a 100644
--- a/src/libraries/asprintf.h
+++ b/src/libraries/asprintf.h
@@ -33,7 +33,7 @@ int vscprintf(const char *format, va_list ap) {
* GNU-C-compatible compilers implement these with the same names, thus we
* don't have to do anything
*/
-#ifdef _MSC_VER
+#if defined(_MSC_VER) || defined(__serenity__)
int cray_vasprintf(char **strp, const char *format, va_list ap) {
int len = vscprintf(format, ap);
if (len == -1)
|