Skip to content
Permalink
Browse files
Define _USE_MATH_DEFINES for MSVC
Otherwise M_PI is not found.
  • Loading branch information
sdroege committed Apr 14, 2020
1 parent f3a77e7 commit 4b9b83f04a74bad6e148ec2548a97fec8c63ab9e
Showing 1 changed file with 2 additions and 1 deletion.
@@ -4,7 +4,8 @@

#include <float.h>
#include <limits.h>
#include <math.h> /* You may have to define _USE_MATH_DEFINES if you use MSVC */
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdio.h>
#include <stdlib.h>

0 comments on commit 4b9b83f

Please sign in to comment.