OSDN Git Service

linuxプリプロセッサをつける
authorshibacow <shibacow@users.sourceforge.jp>
Fri, 14 Sep 2012 19:12:10 +0000 (12:12 -0700)
committershibacow <shibacow@users.sourceforge.jp>
Fri, 14 Sep 2012 19:12:10 +0000 (12:12 -0700)
server/main.cpp

index 0643fbc..054b500 100644 (file)
 #include "../common/Logger.hpp"
 #include "Config.hpp"
 #include "Account.hpp"
+#ifdef __linux__
 #include "ServerSigHandler.hpp"
 #include <csignal>
+#endif
 
 #ifdef _WIN32
 #include <boost/interprocess/windows_shared_memory.hpp>
@@ -318,7 +320,9 @@ int main(int argc, char* argv[])
         });
     }
        #endif
+    #ifdef __linux__
     network::ServerSigHandler handler(SIGINT,&server);
+    #endif
     server.Start(callback);
 
   } catch (std::exception& e) {