mirror of https://github.com/OpenTTD/OpenTTD
(svn r10365) -Fix: compiling without png and networking support under MSVC.
parent
c692d897cd
commit
26d6ba98ee
|
@ -3,11 +3,12 @@
|
||||||
#ifndef NETWORK_DATA_H
|
#ifndef NETWORK_DATA_H
|
||||||
#define NETWORK_DATA_H
|
#define NETWORK_DATA_H
|
||||||
|
|
||||||
|
#include "../openttd.h"
|
||||||
|
#include "network.h"
|
||||||
|
|
||||||
// Is the network enabled?
|
// Is the network enabled?
|
||||||
#ifdef ENABLE_NETWORK
|
#ifdef ENABLE_NETWORK
|
||||||
|
|
||||||
#include "../openttd.h"
|
|
||||||
#include "network.h"
|
|
||||||
#include "core/os_abstraction.h"
|
#include "core/os_abstraction.h"
|
||||||
#include "core/core.h"
|
#include "core/core.h"
|
||||||
#include "core/config.h"
|
#include "core/config.h"
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
/** @file grf.cpp */
|
/** @file grf.cpp */
|
||||||
|
|
||||||
|
#ifdef WITH_PNG
|
||||||
|
|
||||||
#include "../stdafx.h"
|
#include "../stdafx.h"
|
||||||
#include "../gfx.h"
|
#include "../gfx.h"
|
||||||
#include "../fileio.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;
|
if (!LoadPNG(sprite, filename, file_pos, true)) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* WITH_PNG */
|
||||||
|
|
Loading…
Reference in New Issue