From 4a4f10496832ecc07f05df70976e9dc0d0d8bd7b Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 22 Nov 2011 11:10:32 +0000 Subject: [PATCH] Fix compilation warnings. --- src/BLSURFPlugin/BLSURFPlugin_BLSURF.hxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.hxx b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.hxx index 3aea424..6733fc8 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_BLSURF.hxx +++ b/src/BLSURFPlugin/BLSURFPlugin_BLSURF.hxx @@ -37,6 +37,15 @@ #ifdef HAVE_FINITE #undef HAVE_FINITE // VSR: avoid compilation warning on Linux : "HAVE_FINITE" redefined #endif +// rnv: avoid compilation warning on Linux : "_POSIX_C_SOURCE" and "_XOPEN_SOURCE" are redefined +#ifdef _POSIX_C_SOURCE +#undef _POSIX_C_SOURCE +#endif + +#ifdef _XOPEN_SOURCE +#undef _XOPEN_SOURCE +#endif + #include #include "SMESH_2D_Algo.hxx" #include "SMESH_Mesh.hxx" -- 2.39.2