[UPGRADE LIBS] zlib, libpng memory errors

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
skywalk
Addict
Addict
Posts: 4251
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

[UPGRADE LIBS] zlib, libpng memory errors

Post by skywalk »

libpng
zlib

Code: Select all

CompilerIf 1
  UsePNGImageDecoder()
  ImportC ""
    png_access_version_number()
    zlibVersion()
  EndImport
  Debug "; #PB_Compiler_Version        = " + Str(#PB_Compiler_Version)
  Debug "; png_access_version_number() = " + Str(png_access_version_number())
  Debug "; zlibVersion()               = " + PeekS(zlibVersion(), -1, #PB_Ascii)
  ; #PB_Compiler_Version        = 630
  ; png_access_version_number() = 10637
  ; zlibVersion()               = 1.2.12
CompilerEndIf
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum