Sprite: Define M_PI manually
Apparently (older?) mingw-w64 with C++11 enabled doesn't have it.
This commit is contained in:
		
							parent
							
								
									d6b477b887
								
							
						
					
					
						commit
						6fa5b8c856
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -35,6 +35,9 @@
 | 
				
			||||||
#include "quadarray.h"
 | 
					#include "quadarray.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <math.h>
 | 
					#include <math.h>
 | 
				
			||||||
 | 
					#ifndef M_PI
 | 
				
			||||||
 | 
					# define M_PI 3.14159265358979323846
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <SDL_rect.h>
 | 
					#include <SDL_rect.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue