forked from InsightSoftwareConsortium/ITK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request InsightSoftwareConsortium#5022 from blowekamp/gdcm…
…_use_itkopenjpeg GDCM use itkopenjpeg
- Loading branch information
Showing
6 changed files
with
41 additions
and
2 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ else() | |
DEPENDS | ||
ITKZLIB | ||
ITKExpat | ||
ITKOpenJPEG | ||
DESCRIPTION | ||
"${DOCUMENTATION}" | ||
) | ||
|
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
11 changes: 11 additions & 0 deletions
11
Modules/ThirdParty/OpenJPEG/src/openjpeg/cmake/TestFileOffsetBits.c
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,11 @@ | ||
#include <sys/types.h> | ||
|
||
/* Cause a compile-time error if off_t is smaller than 64 bits */ | ||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
int off_t_is_large[ (LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1 ]; | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
return 0; | ||
} | ||
|
23 changes: 23 additions & 0 deletions
23
Modules/ThirdParty/OpenJPEG/src/openjpeg/cmake/TestLargeFiles.c.cmake.in
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,23 @@ | ||
#cmakedefine _LARGEFILE_SOURCE | ||
#cmakedefine _LARGE_FILES | ||
#cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@ | ||
|
||
#include <sys/types.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
/* Cause a compile-time error if off_t is smaller than 64 bits, | ||
* and make sure we have ftello / fseeko. | ||
*/ | ||
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | ||
int off_t_is_large[ (LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1 ]; | ||
FILE *fp = fopen(argv[0],"r"); | ||
off_t offset = ftello( fp ); | ||
|
||
fseeko( fp, offset, SEEK_CUR ); | ||
fclose(fp); | ||
return 0; | ||
} | ||
|