mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 08:27:35 +00:00
Ports: C-ray rendering engine
This commit is contained in:
parent
fe1df9e9fb
commit
2a21675b01
7 changed files with 176 additions and 0 deletions
19
Ports/c-ray/patches/enable-own-asprintf.patch
Normal file
19
Ports/c-ray/patches/enable-own-asprintf.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
diff --git a/src/libraries/asprintf.h b/src/libraries/asprintf.h
|
||||
index 70a95ac..0e46c3c 100644
|
||||
--- a/src/libraries/asprintf.h
|
||||
+++ b/src/libraries/asprintf.h
|
||||
@@ -33,7 +33,6 @@ 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
|
||||
int cray_vasprintf(char **strp, const char *format, va_list ap) {
|
||||
int len = vscprintf(format, ap);
|
||||
if (len == -1)
|
||||
@@ -57,6 +56,5 @@ int asprintf(char **strp, const char *format, ...) {
|
||||
va_end(ap);
|
||||
return retval;
|
||||
}
|
||||
-#endif
|
||||
|
||||
#endif // ASPRINTF_H
|
Loading…
Add table
Add a link
Reference in a new issue