summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLode <lvandeve@gmail.com>2016-01-18 20:42:55 +0100
committerLode <lvandeve@gmail.com>2016-01-18 20:42:55 +0100
commita0f8161e51ddff5e12288834ecbb9284f1ff81eb (patch)
tree7d261fd85b4ba8ac78214eb17745bcd52b58f708
parentc5861e57077f044f279b752a74cabc2ed1169d00 (diff)
only include those C++ headers when LODEPNG_COMPILE_CPP
-rw-r--r--lodepng.h10
1 files 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 <string.h> /*for size_t*/
-#ifdef __cplusplus
-#include <vector>
-#include <string>
-#endif /*__cplusplus*/
-
extern const char* LODEPNG_VERSION_STRING;
/*
@@ -86,6 +81,11 @@ source files with custom allocators.*/
#endif
#endif
+#ifdef LODEPNG_COMPILE_CPP
+#include <vector>
+#include <string>
+#endif /*LODEPNG_COMPILE_CPP*/
+
#ifdef LODEPNG_COMPILE_PNG
/*The PNG color types (also used for raw).*/
typedef enum LodePNGColorType