mirror of
https://github.com/libretro/FBNeo.git
synced 2025-02-17 08:07:40 +00:00
Add a makefile INCLUDE_LIB_PNGH to allow not including png.h in burner.h
This commit is contained in:
parent
5c64b2cc0d
commit
ad0075c160
3
makefile
3
makefile
@ -54,6 +54,9 @@ PERL = 1
|
|||||||
# Endianness
|
# Endianness
|
||||||
LSB_FIRST = 1
|
LSB_FIRST = 1
|
||||||
|
|
||||||
|
# Include png.h from burner.h
|
||||||
|
INCLUDE_LIB_PNGH = 1
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# execute an appropriate system-specific makefile
|
# execute an appropriate system-specific makefile
|
||||||
|
@ -282,6 +282,10 @@ ifdef LSB_FIRST
|
|||||||
DEF := $(DEF) -DLSB_FIRST
|
DEF := $(DEF) -DLSB_FIRST
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef INCLUDE_LIB_PNGH
|
||||||
|
DEF := $(DEF) -DINCLUDE_LIB_PNGH
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef BUILD_A68K
|
ifdef BUILD_A68K
|
||||||
DEF := $(DEF) -DBUILD_A68K
|
DEF := $(DEF) -DBUILD_A68K
|
||||||
endif
|
endif
|
||||||
|
@ -196,6 +196,10 @@ ifdef LSB_FIRST
|
|||||||
DEF := $(DEF) /DLSB_FIRST
|
DEF := $(DEF) /DLSB_FIRST
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef INCLUDE_LIB_PNGH
|
||||||
|
DEF := $(DEF) /DINCLUDE_LIB_PNGH
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef BUILD_A68K
|
ifdef BUILD_A68K
|
||||||
DEF := $(DEF) /DBUILD_A68K
|
DEF := $(DEF) /DBUILD_A68K
|
||||||
endif
|
endif
|
||||||
|
@ -42,7 +42,9 @@ typedef struct tagIMAGE {
|
|||||||
#include "burner_xbox.h"
|
#include "burner_xbox.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "png.h"
|
#if defined (INCLUDE_LIB_PNGH)
|
||||||
|
#include "png.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// OS independent functionality
|
// OS independent functionality
|
||||||
|
Loading…
x
Reference in New Issue
Block a user