Add a makefile INCLUDE_LIB_PNGH to allow not including png.h in burner.h

This commit is contained in:
Barry Harris 2012-03-09 14:07:59 +00:00
parent 5c64b2cc0d
commit ad0075c160
4 changed files with 14 additions and 1 deletions

View File

@ -54,6 +54,9 @@ PERL = 1
# Endianness
LSB_FIRST = 1
# Include png.h from burner.h
INCLUDE_LIB_PNGH = 1
#
# execute an appropriate system-specific makefile

View File

@ -282,6 +282,10 @@ ifdef LSB_FIRST
DEF := $(DEF) -DLSB_FIRST
endif
ifdef INCLUDE_LIB_PNGH
DEF := $(DEF) -DINCLUDE_LIB_PNGH
endif
ifdef BUILD_A68K
DEF := $(DEF) -DBUILD_A68K
endif

View File

@ -196,6 +196,10 @@ ifdef LSB_FIRST
DEF := $(DEF) /DLSB_FIRST
endif
ifdef INCLUDE_LIB_PNGH
DEF := $(DEF) /DINCLUDE_LIB_PNGH
endif
ifdef BUILD_A68K
DEF := $(DEF) /DBUILD_A68K
endif

View File

@ -42,7 +42,9 @@ typedef struct tagIMAGE {
#include "burner_xbox.h"
#endif
#include "png.h"
#if defined (INCLUDE_LIB_PNGH)
#include "png.h"
#endif
// ---------------------------------------------------------------------------
// OS independent functionality