Skip to content

Commit

Permalink
Define _USE_MATH_DEFINES even when using mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Aug 12, 2024
1 parent 89b7023 commit e63c653
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions xapian-core/config.h.meson
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,15 @@
*/
# define _WINSOCK_DEPRECATED_NO_WARNINGS

/* Tell MSVC we want M_PI, etc defined. */
# define _USE_MATH_DEFINES

/* Tell MSVC we don't want max() and min() macros defined. */
# define NOMINMAX
#endif

#if defined _MSC_VER || defined __MINGW32__
/* Tell MSVC we want M_PI, etc defined. */
# define _USE_MATH_DEFINES
#endif

/* Make the POSIX-like functions support large files. MSVC needs this;
* current mingw32 does too; mingw64 supports _FILE_OFFSET_BITS, which
* AC_SYS_LARGEFILE should discover and enable automatically.
Expand Down

0 comments on commit e63c653

Please sign in to comment.