From a0f8161e51ddff5e12288834ecbb9284f1ff81eb Mon Sep 17 00:00:00 2001 From: Lode Date: Mon, 18 Jan 2016 20:42:55 +0100 Subject: only include those C++ headers when LODEPNG_COMPILE_CPP --- lodepng.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lodepng.h b/lodepng.h index 800cd0c..8b8e2d4 100644 --- a/lodepng.h +++ b/lodepng.h @@ -28,11 +28,6 @@ freely, subject to the following restrictions: #include /*for size_t*/ -#ifdef __cplusplus -#include -#include -#endif /*__cplusplus*/ - extern const char* LODEPNG_VERSION_STRING; /* @@ -86,6 +81,11 @@ source files with custom allocators.*/ #endif #endif +#ifdef LODEPNG_COMPILE_CPP +#include +#include +#endif /*LODEPNG_COMPILE_CPP*/ + #ifdef LODEPNG_COMPILE_PNG /*The PNG color types (also used for raw).*/ typedef enum LodePNGColorType -- cgit v1.2.3