lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [6534] Make this platform-specific code empty for other pl


From: Greg Chicares
Subject: [lmi-commits] [6534] Make this platform-specific code empty for other platforms (VZ)
Date: Sun, 27 Mar 2016 11:29:14 +0000

Revision: 6534
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6534
Author:   chicares
Date:     2016-03-27 11:29:14 +0000 (Sun, 27 Mar 2016)
Log Message:
-----------
Make this platform-specific code empty for other platforms (VZ)

Modified Paths:
--------------
    lmi/trunk/msw_workarounds.cpp
    lmi/trunk/msw_workarounds.hpp

Modified: lmi/trunk/msw_workarounds.cpp
===================================================================
--- lmi/trunk/msw_workarounds.cpp       2016-03-27 10:58:20 UTC (rev 6533)
+++ lmi/trunk/msw_workarounds.cpp       2016-03-27 11:29:14 UTC (rev 6534)
@@ -28,6 +28,8 @@
 
 #include "msw_workarounds.hpp"
 
+#ifdef LMI_MSW
+
 #include "alert.hpp"
 #include "configurable_settings.hpp"
 #include "fenv_lmi.hpp"
@@ -35,9 +37,7 @@
 
 #include <boost/functional.hpp>
 
-#ifdef LMI_MSW
-#   include <windows.h>
-#endif // LMI_MSW defined.
+#include <windows.h>
 
 #include <algorithm>
 #include <functional>
@@ -87,7 +87,6 @@
 
 void MswDllPreloader::PreloadOneDll(std::string const& dll_name)
 {
-#ifdef LMI_MSW
     fenv_initialize();
 
     if(0 == ::LoadLibraryA(dll_name.c_str()))
@@ -109,16 +108,14 @@
                 ;
             }
         }
-#endif // LMI_MSW defined.
 }
 
 void MswDllPreloader::UnloadOneDll(std::string const& dll_name)
 {
-#ifdef LMI_MSW
     if(0 == ::FreeLibrary(::GetModuleHandleA(dll_name.c_str())))
         {
         warning() << "Failed to unload '" << dll_name << "'." << LMI_FLUSH;
         }
-#endif // LMI_MSW defined.
 }
 
+#endif // LMI_MSW defined.

Modified: lmi/trunk/msw_workarounds.hpp
===================================================================
--- lmi/trunk/msw_workarounds.hpp       2016-03-27 10:58:20 UTC (rev 6533)
+++ lmi/trunk/msw_workarounds.hpp       2016-03-27 11:29:14 UTC (rev 6534)
@@ -26,6 +26,8 @@
 
 #include "config.hpp"
 
+#ifdef LMI_MSW
+
 #include "obstruct_slicing.hpp"
 #include "uncopyable_lmi.hpp"
 
@@ -67,5 +69,7 @@
     std::deque<std::string> SuccessfullyPreloadedDlls_;
 };
 
+#endif // LMI_MSW defined.
+
 #endif // msw_workarounds_hpp
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]