summaryrefslogtreecommitdiff
path: root/cad/opencascade740/files/patch-src_Standard_Standard__CLocaleSentry.hxx
blob: 3c44df8828008a17ec4e9b89cff952ce8fa15b06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- 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