From 85c327db80374c8a79d566776151ca83b97f787b Mon Sep 17 00:00:00 2001 From: Jeff Boody Date: Sun, 20 Dec 2015 10:07:51 -0700 Subject: [PATCH] add lodepng.c to simplify build process for c --- lodepng.c | 31 +++++++++++++++++++++++++++++++ lodepng.cpp | 1 - 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 lodepng.c diff --git a/lodepng.c b/lodepng.c new file mode 100644 index 00000000..e593cceb --- /dev/null +++ b/lodepng.c @@ -0,0 +1,31 @@ +/* +Copyright (c) 2005-2015 Lode Vandevenne + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source + distribution. +*/ + +/* +The manual and changelog are in the header file "lodepng.h" +*/ + +/* +The cpp file also supports c +*/ +#include "lodepng.cpp" diff --git a/lodepng.cpp b/lodepng.cpp index 8b6076d1..b29659ad 100644 --- a/lodepng.cpp +++ b/lodepng.cpp @@ -25,7 +25,6 @@ freely, subject to the following restrictions: /* The manual and changelog are in the header file "lodepng.h" -Rename this file to lodepng.cpp to use it for C++, or to lodepng.c to use it for C. */ #include "lodepng.h"