summaryrefslogtreecommitdiff
path: root/src/spriteloader
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-27 22:26:27 +0000
committerrubidium <rubidium@openttd.org>2007-06-27 22:26:27 +0000
commitdaafda6f620dcfaad12468a301ea0620e45eb7c5 (patch)
tree1910216b927e686dc13fd9aa988a6c0cc702ee0a /src/spriteloader
parentcd0e022172005d5a6a463848cdc711df1dda648f (diff)
downloadopenttd-daafda6f620dcfaad12468a301ea0620e45eb7c5.tar.xz
(svn r10365) -Fix: compiling without png and networking support under MSVC.
Diffstat (limited to 'src/spriteloader')
-rw-r--r--src/spriteloader/png.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/spriteloader/png.cpp b/src/spriteloader/png.cpp
index 71f64a2bf..6048c6fdd 100644
--- a/src/spriteloader/png.cpp
+++ b/src/spriteloader/png.cpp
@@ -2,6 +2,8 @@
/** @file grf.cpp */
+#ifdef WITH_PNG
+
#include "../stdafx.h"
#include "../gfx.h"
#include "../fileio.h"
@@ -184,3 +186,5 @@ bool SpriteLoaderPNG::LoadSprite(SpriteLoader::Sprite *sprite, const char *filen
if (!LoadPNG(sprite, filename, file_pos, true)) return false;
return true;
}
+
+#endif /* WITH_PNG */