diff options
-rw-r--r-- | lodepng.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |