mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:12:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			869 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			869 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| 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)
 | 
