-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [jasper] update to 4.0.0 * remove unused variable * v db * add JAS_STDC_VERSION * v db * fix devil port * v db * patch out the stdc check * v db * adjust patch * v db
- Loading branch information
Showing
9 changed files
with
79 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/DevIL/src-IL/src/il_jp2.cpp b/DevIL/src-IL/src/il_jp2.cpp | ||
index a419c1484..7b7e3cb12 100644 | ||
--- a/DevIL/src-IL/src/il_jp2.cpp | ||
+++ b/DevIL/src-IL/src/il_jp2.cpp | ||
@@ -314,9 +314,9 @@ ILboolean iLoadJp2Internal(jas_stream_t *Stream, ILimage *Image) | ||
|
||
|
||
#ifdef __APPLE__ | ||
-static int iJp2_file_read(void *obj, char *buf, unsigned int cnt) | ||
+static ssize_t iJp2_file_read(void *obj, char *buf, size_t cnt) | ||
#else | ||
-static int iJp2_file_read(jas_stream_obj_t *obj, char *buf, unsigned int cnt) | ||
+static ssize_t iJp2_file_read(jas_stream_obj_t *obj, char *buf, size_t cnt) | ||
#endif | ||
{ | ||
obj; | ||
@@ -324,9 +324,9 @@ static int iJp2_file_read(jas_stream_obj_t *obj, char *buf, unsigned int cnt) | ||
} | ||
|
||
#ifdef __APPLE__ | ||
-static int iJp2_file_write(void *obj, const char *buf, unsigned int cnt) | ||
+static ssize_t iJp2_file_write(void *obj, const char *buf, size_t cnt) | ||
#else | ||
-static int iJp2_file_write(jas_stream_obj_t *obj, const char *buf, unsigned int cnt) | ||
+static ssize_t iJp2_file_write(jas_stream_obj_t *obj, const char *buf, size_t cnt) | ||
#endif | ||
{ | ||
obj; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 840908739..c485b830c 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -414,7 +414,7 @@ if((DEFINED JAS_CROSSCOMPILING AND JAS_CROSSCOMPILING) OR | ||
# will need to be set manually from the command line | ||
# (e.g., using -DJAS_STDC_VERSION=YYYYMML) or by changing the line below. | ||
set(JAS_STDC_VERSION "0L" CACHE INTERNAL "The value of __STDC_VERSION__.") | ||
- if (JAS_STDC_VERSION STREQUAL "0L") | ||
+ if (0) | ||
message(FATAL_ERROR | ||
"The value of __STDC_VERSION__ cannot be automatically determined " | ||
"when cross-compiling. Please set JAS_STDC_VERSION to the value " | ||
@@ -423,8 +423,9 @@ if((DEFINED JAS_CROSSCOMPILING AND JAS_CROSSCOMPILING) OR | ||
"appropriately.") | ||
endif() | ||
else() | ||
- jas_get_stdc_version(status JAS_STDC_VERSION) | ||
- if(NOT status) | ||
+ #jas_get_stdc_version(status JAS_STDC_VERSION) | ||
+ set(JAS_STDC_VERSION 0L) | ||
+ if(0) | ||
message(FATAL_ERROR "Cannot determine the value of __STDC_VERSION__.") | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters