Build fix for Windows.

This commit is contained in:
Gunnar Beutner 2012-09-17 11:13:35 +02:00
parent 093931a1d3
commit 86c0aff719
3 changed files with 5 additions and 11 deletions

View File

@ -24,8 +24,6 @@
# define ICINGA_VERSION VERSION ", " GIT_MESSAGE
# include <ltdl.h>
#else /* _WIN32 */
# define ICINGA_VERSION VERSION
#endif /* _WIN32 */
using namespace icinga;
@ -51,7 +49,11 @@ int main(int argc, char **argv)
* in the base library. */
Application::SetMainThread();
Logger::Write(LogInformation, "icinga", "Icinga application loader (version: " ICINGA_VERSION ")");
Logger::Write(LogInformation, "icinga", "Icinga application loader"
#ifndef _WIN32
" (version: " ICINGA_VERSION ")"
#endif /* _WIN32 */
);
if (argc < 3 || strcmp(argv[1], "-c") != 0) {
stringstream msgbuf;

View File

@ -36,7 +36,6 @@
<ClCompile Include="tcpclient.cpp" />
<ClCompile Include="tcpserver.cpp" />
<ClCompile Include="tcpsocket.cpp" />
<ClCompile Include="threadpool.cpp" />
<ClCompile Include="timer.cpp" />
<ClCompile Include="tlsclient.cpp" />
<ClCompile Include="unix.cpp" />
@ -69,7 +68,6 @@
<ClInclude Include="tcpclient.h" />
<ClInclude Include="tcpserver.h" />
<ClInclude Include="tcpsocket.h" />
<ClInclude Include="threadpool.h" />
<ClInclude Include="timer.h" />
<ClInclude Include="tlsclient.h" />
<ClInclude Include="unix.h" />

View File

@ -34,9 +34,6 @@
<ClCompile Include="tcpsocket.cpp">
<Filter>Quelldateien</Filter>
</ClCompile>
<ClCompile Include="threadpool.cpp">
<Filter>Quelldateien</Filter>
</ClCompile>
<ClCompile Include="timer.cpp">
<Filter>Quelldateien</Filter>
</ClCompile>
@ -129,9 +126,6 @@
<ClInclude Include="tcpsocket.h">
<Filter>Headerdateien</Filter>
</ClInclude>
<ClInclude Include="threadpool.h">
<Filter>Headerdateien</Filter>
</ClInclude>
<ClInclude Include="timer.h">
<Filter>Headerdateien</Filter>
</ClInclude>