summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLode <lvandeve@gmail.com>2014-12-01 01:00:22 +0100
committerLode <lvandeve@gmail.com>2014-12-01 01:00:22 +0100
commitbf09e0a5f173ba07821b782b8297dbfc139d5fed (patch)
treef02f7350f869bd820c91cadce78f9c602b3c9f87
parentd515dbdfeba0f3c02deb17dce5ca1f958fc0befb (diff)
move VERSION_STRING to header as LODEPNG_VERSION_STRING
-rw-r--r--lodepng.cpp6
-rw-r--r--lodepng.h4
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 <fstream>
#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 <string>
#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.