Browse Source

Fixed things that might not compile on other compilers.

David Piuva 5 years ago
parent
commit
cd33bdc055
2 changed files with 2 additions and 1 deletions
  1. 1 1
      Source/DFPSR/api/types.h
  2. 1 0
      Source/DFPSR/math/IRect.h

+ 1 - 1
Source/DFPSR/api/types.h

@@ -93,7 +93,7 @@ using RasterFont = std::shared_ptr<RasterFontImpl>;
 //   Everything running in a media machine is guaranteed to be 100% deterministic to the last bit.
 //   Everything running in a media machine is guaranteed to be 100% deterministic to the last bit.
 //     This reduces the amount of code where maintenance has to be performed during porting.
 //     This reduces the amount of code where maintenance has to be performed during porting.
 //     It also means that any use of float or double is forbidden.
 //     It also means that any use of float or double is forbidden.
-class VirtualMachine;
+struct VirtualMachine;
 struct MediaMachine : IMPL_ACCESS std::shared_ptr<VirtualMachine> {
 struct MediaMachine : IMPL_ACCESS std::shared_ptr<VirtualMachine> {
 	MediaMachine(); // Defaults to null
 	MediaMachine(); // Defaults to null
 IMPL_ACCESS:
 IMPL_ACCESS:

+ 1 - 0
Source/DFPSR/math/IRect.h

@@ -26,6 +26,7 @@
 
 
 #include <stdint.h>
 #include <stdint.h>
 #include <math.h>
 #include <math.h>
+#include <algorithm>
 #include "IVector.h"
 #include "IVector.h"
 
 
 namespace dsr {
 namespace dsr {