Skip to content

Commit

Permalink
Microsoft C/C++ has no strncasecmp, but does have strncmp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill-Gray committed Nov 16, 2023
1 parent 7de1a5b commit 75c50a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mpc_code.cpp
Expand Up @@ -27,6 +27,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
#include "lunar.h"
#include "stringex.h"

#ifdef _MSC_VER
/* Microsoft Visual C/C++ has no strncasecmp. strncmp will do. */
#define strncasecmp strncmp
#endif

#define SUN_RADIUS 695700e+3
#define MERCURY_MAJOR_AXIS 2440530.
#define MERCURY_MINOR_AXIS 2438260.
Expand Down

0 comments on commit 75c50a1

Please sign in to comment.