diff options
author | Lode <lvandeve@gmail.com> | 2016-01-18 20:42:55 +0100 |
---|---|---|
committer | Lode <lvandeve@gmail.com> | 2016-01-18 20:42:55 +0100 |
commit | a0f8161e51ddff5e12288834ecbb9284f1ff81eb (patch) | |
tree | 7d261fd85b4ba8ac78214eb17745bcd52b58f708 | |
parent | c5861e57077f044f279b752a74cabc2ed1169d00 (diff) |
only include those C++ headers when LODEPNG_COMPILE_CPP
-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 |