ports/cad/opencascade/files/patch-src_Standard_Standard__CLocaleSentry.hxx
2018-10-30 17:23:01 +00:00

11 lines
602 B
C++

--- src/Standard/Standard_CLocaleSentry.hxx.orig 2018-05-25 19:14:11 UTC
+++ src/Standard/Standard_CLocaleSentry.hxx
@@ -31,7 +31,7 @@
//! Presence of this extension cannot be checked in straightforward way (like (_POSIX_C_SOURCE >= 200809L))
//! due to missing such declarations in standard.
//! On macOS new functions are declared within "xlocale.h" header (the same is for glibc, but this header has been removed since glibc 2.26).
- #if defined(__APPLE__)
+ #if defined(__APPLE__) || (defined(__FreeBSD__) && (__FreeBSD_version > 910000))
#define OCCT_CLOCALE_POSIX2008
#endif