(svn r10365) -Fix: compiling without png and networking support under MSVC.
authorrubidium
Wed, 27 Jun 2007 22:26:27 +0000
changeset 7098 02887279c5fe
parent 7097 bc497a49fb45
child 7099 a1d7e197cb64
(svn r10365) -Fix: compiling without png and networking support under MSVC.
src/network/network_data.h
src/spriteloader/png.cpp
--- a/src/network/network_data.h	Wed Jun 27 20:53:25 2007 +0000
+++ b/src/network/network_data.h	Wed Jun 27 22:26:27 2007 +0000
@@ -3,11 +3,12 @@
 #ifndef NETWORK_DATA_H
 #define NETWORK_DATA_H
 
+#include "../openttd.h"
+#include "network.h"
+
 // Is the network enabled?
 #ifdef ENABLE_NETWORK
 
-#include "../openttd.h"
-#include "network.h"
 #include "core/os_abstraction.h"
 #include "core/core.h"
 #include "core/config.h"
--- a/src/spriteloader/png.cpp	Wed Jun 27 20:53:25 2007 +0000
+++ b/src/spriteloader/png.cpp	Wed Jun 27 22:26:27 2007 +0000
@@ -2,6 +2,8 @@
 
 /** @file grf.cpp */
 
+#ifdef WITH_PNG
+
 #include "../stdafx.h"
 #include "../gfx.h"
 #include "../fileio.h"
@@ -184,3 +186,5 @@
 	if (!LoadPNG(sprite, filename, file_pos, true)) return false;
 	return true;
 }
+
+#endif /* WITH_PNG */