summaryrefslogtreecommitdiff
path: root/lodepng.h
diff options
context:
space:
mode:
Diffstat (limited to 'lodepng.h')
-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