diff options
author | Slávek Banko <[email protected]> | 2017-01-30 18:42:10 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2017-01-30 18:42:10 +0100 |
commit | 2c54f6887d3a64693a0097f3ace85614606bf8d8 (patch) | |
tree | b0e874f6cfd3b9145d14bacb0fcfa083ab9d0a62 | |
parent | a412a1e86f9f1aecfc76bd41e43245480953b0e4 (diff) | |
download | digikam-2c54f6887d3a64693a0097f3ace85614606bf8d8.tar.gz digikam-2c54f6887d3a64693a0097f3ace85614606bf8d8.zip |
Enable STDC_LIMIT_MACROS for jasper
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r-- | digikam/libs/dimg/dimg.cpp | 3 | ||||
-rw-r--r-- | digikam/libs/dimg/loaders/jp2kloader.cpp | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/digikam/libs/dimg/dimg.cpp b/digikam/libs/dimg/dimg.cpp index b1caeeef..d61f2dd0 100644 --- a/digikam/libs/dimg/dimg.cpp +++ b/digikam/libs/dimg/dimg.cpp @@ -27,6 +27,9 @@ extern "C" { +#if !defined(__STDC_LIMIT_MACROS) +#define __STDC_LIMIT_MACROS +#endif #include <stdint.h> } diff --git a/digikam/libs/dimg/loaders/jp2kloader.cpp b/digikam/libs/dimg/loaders/jp2kloader.cpp index e485b134..d68c4889 100644 --- a/digikam/libs/dimg/loaders/jp2kloader.cpp +++ b/digikam/libs/dimg/loaders/jp2kloader.cpp @@ -36,6 +36,16 @@ // files io. Uncomment this line only for debugging. //#define ENABLE_DEBUG_MESSAGES +// C ANSI includes. + +extern "C" +{ +#if !defined(__STDC_LIMIT_MACROS) +#define __STDC_LIMIT_MACROS +#endif +#include <stdint.h> +} + // TQt includes. #include <tqfile.h> |