Skip to content

Commit

Permalink
Update for libpng16
Browse files Browse the repository at this point in the history
  • Loading branch information
cosarara committed Jan 13, 2015
1 parent 442a21b commit b27bc1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -5,9 +5,9 @@ TARGET = vba-sdl-h
BININSTALLPATH = /usr/bin
ETC = /etc

INCLUDES = -I/usr/include/libpng12 -I/usr/include/SDL -Isrc
INCLUDES = -I/usr/include/libpng16 -I/usr/include/SDL -Isrc

LIBS = -L/usr/lib -lSDL -lpthread -lreadline -lpng12 -lz -lminizip
LIBS = -L/usr/lib -lSDL -lpthread -lreadline -lpng16 -lz -lminizip

CXXFLAGS = -Wno-write-strings -DBKPT_SUPPORT -DSYSCONFDIR=\"/etc\" \
-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" \
Expand Down Expand Up @@ -41,7 +41,7 @@ OBJECTS = ./src/motionblur.o ./src/agbprint.o \
$(CXX) $(CXXFLAGS) $(INCLUDES) -c $< -o $@

$(TARGET): $(OBJECTS)
g++ $(INCLUDES) $^ -o $@ $(LIBS)
g++ $(INCLUDES) $^ -o $@ $(LIBS)

clean:
rm -f $(OBJECTS) $(TARGET)
Expand Down
2 changes: 1 addition & 1 deletion src/Util.cpp
Expand Up @@ -78,7 +78,7 @@ bool utilWritePNGFile(const char *fileName, int w, int h, u8 *pix)
return false;
}

if(setjmp(png_ptr->jmpbuf)) {
if(setjmp(png_jmpbuf(png_ptr))) {
png_destroy_write_struct(&png_ptr,NULL);
fclose(fp);
return false;
Expand Down

1 comment on commit b27bc1b

@nanoemu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh lol that was really easy. Seems like I somehow oversaw the libpng12 version in the AUR. I will update my AUR package soon so it will use your solution!

Please sign in to comment.