Salome HOME
projects
/
plugins
/
blsurfplugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0460682
)
Suppress compilation errors about redefinition of '_POSIX_C_SOURCE' and '_XOPEN_SOURCE'.
author
akl
<akl@opencascade.com>
Tue, 19 Feb 2013 08:42:07 +0000
(08:42 +0000)
committer
akl
<akl@opencascade.com>
Tue, 19 Feb 2013 08:42:07 +0000
(08:42 +0000)
src/GUI/BLSURFPluginGUI_HypothesisCreator.h
patch
|
blob
|
history
diff --git
a/src/GUI/BLSURFPluginGUI_HypothesisCreator.h
b/src/GUI/BLSURFPluginGUI_HypothesisCreator.h
index a8d277f2899195a180de7f8e7414b494c72512de..717012f0feef2f452a1d9f436203919974f1c28c 100644
(file)
--- 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 )