You've already forked RSDKv5-Decompilation
mirror of
https://github.com/izzy2lost/RSDKv5-Decompilation.git
synced 2026-03-26 16:42:45 -07:00
17 lines
413 B
Diff
17 lines
413 B
Diff
diff --git a/examples/encoder_example.c b/examples/encoder_example.c
|
|
index d6f5c58..a1f73f1 100644
|
|
--- a/examples/encoder_example.c
|
|
+++ b/examples/encoder_example.c
|
|
@@ -53,7 +53,11 @@
|
|
#include <string.h>
|
|
#include <ctype.h>
|
|
|
|
+#ifdef _MSC_VER
|
|
+static double rint(double x) { return x < 0 ? ceil(x - 0.5) : floor(x + 0.5); }
|
|
+#else
|
|
extern double rint(double _x);
|
|
+#endif
|
|
|
|
#define OC_THEORA 0
|
|
#define OC_VP3 1
|