From bf09e0a5f173ba07821b782b8297dbfc139d5fed Mon Sep 17 00:00:00 2001 From: Lode Date: Mon, 1 Dec 2014 01:00:22 +0100 Subject: move VERSION_STRING to header as LODEPNG_VERSION_STRING --- lodepng.cpp | 6 ++---- lodepng.h | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lodepng.cpp b/lodepng.cpp index d7486f3..dfe4b65 100644 --- a/lodepng.cpp +++ b/lodepng.cpp @@ -1,5 +1,5 @@ /* -LodePNG version 20141126 +LodePNG version 20141130 Copyright (c) 2005-2014 Lode Vandevenne @@ -37,8 +37,6 @@ Rename this file to lodepng.cpp to use it for C++, or to lodepng.c to use it for #include #endif /*LODEPNG_COMPILE_CPP*/ -#define VERSION_STRING "20141126" - #if defined(_MSC_VER) && (_MSC_VER >= 1310) /*Visual Studio: A few warning types are not desired here.*/ #pragma warning( disable : 4244 ) /*implicit conversions: not warned by gcc -Wall -Wextra and requires too much casts*/ #pragma warning( disable : 4996 ) /*VS does not like fopen, but fopen_s is not standard C so unusable here*/ @@ -5695,7 +5693,7 @@ unsigned lodepng_encode(unsigned char** out, size_t* outsize, } if(alread_added_id_text == 0) { - addChunk_tEXt(&outv, "LodePNG", VERSION_STRING); /*it's shorter as tEXt than as zTXt chunk*/ + addChunk_tEXt(&outv, "LodePNG", LODEPNG_VERSION_STRING); /*it's shorter as tEXt than as zTXt chunk*/ } } /*iTXt*/ diff --git a/lodepng.h b/lodepng.h index b9e90c4..5204ddc 100644 --- a/lodepng.h +++ b/lodepng.h @@ -1,5 +1,5 @@ /* -LodePNG version 20141126 +LodePNG version 20141130 Copyright (c) 2005-2014 Lode Vandevenne @@ -33,6 +33,8 @@ freely, subject to the following restrictions: #include #endif /*__cplusplus*/ +#define LODEPNG_VERSION_STRING "20141130" + /* The following #defines are used to create code sections. They can be disabled to disable code sections, which can give faster compile time and smaller binary. -- cgit v1.2.3