Newer
Older
minerva / Ports / c-ray / patches / 0003-Let-c-ray-define-its-own-version-of-vasprintf.patch
@minerva minerva on 13 Jul 868 bytes Initial commit
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(__minerva__)
 int cray_vasprintf(char **strp, const char *format, va_list ap) {
 	int len = vscprintf(format, ap);
 	if (len == -1)