From 4380436552da7297d4e079166abb826613436a45 Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 19 Feb 2013 08:42:07 +0000 Subject: [PATCH] Suppress compilation errors about redefinition of '_POSIX_C_SOURCE' and '_XOPEN_SOURCE'. --- src/GUI/BLSURFPluginGUI_HypothesisCreator.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.h b/src/GUI/BLSURFPluginGUI_HypothesisCreator.h index a8d277f..717012f 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.h +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.h @@ -27,6 +27,15 @@ #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 ) -- 2.39.2