Salome HOME
Suppress compilation errors about redefinition of '_POSIX_C_SOURCE' and '_XOPEN_SOURCE'.
authorakl <akl@opencascade.com>
Tue, 19 Feb 2013 08:42:07 +0000 (08:42 +0000)
committerakl <akl@opencascade.com>
Tue, 19 Feb 2013 08:42:07 +0000 (08:42 +0000)
src/GUI/BLSURFPluginGUI_HypothesisCreator.h

index a8d277f2899195a180de7f8e7414b494c72512de..717012f0feef2f452a1d9f436203919974f1c28c 100644 (file)
 #ifndef BLSURFPLUGINGUI_HypothesisCreator_H
 #define BLSURFPLUGINGUI_HypothesisCreator_H
 
+// akl: 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
+
 #ifdef WIN32
   #if defined BLSURFPLUGIN_GUI_EXPORTS || defined BLSURFPluginGUI_EXPORTS
     #define BLSURFPLUGIN_GUI_EXPORT __declspec( dllexport )