Skip to content

Commit

Permalink
Added #define to make MSVC see M_PI
Browse files Browse the repository at this point in the history
Discussed here: dkogan/mrcal#12
  • Loading branch information
dkogan committed Dec 8, 2023
1 parent 3d45754 commit 1f88d01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dogleg.c
Expand Up @@ -3,6 +3,9 @@
// 2017-2018 Dima Kogan <dima@secretsauce.net>
// License: GNU LGPL <http://www.gnu.org/licenses>.

// Apparently I need this in MSVC to get constants
#define _USE_MATH_DEFINES

#include <stdio.h>
#include <stdarg.h>
#include <math.h>
Expand Down

0 comments on commit 1f88d01

Please sign in to comment.