CHECK_INCLUDE_FILE("sys/stat.h" HAVE_SYS_STAT_H)
CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H)
CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
+# ssize_t
+include(CheckTypeSize)
+CHECK_TYPE_SIZE(ssize_t SSIZE_T)
# Enable Large file support
include(TestLargeFiles)
endif ()
add_subdirectory(wrapping)
-include(CheckTypeSize)
-CHECK_TYPE_SIZE(ssize_t SSIZE_T)
-
#-----------------------------------------------------------------------------
# Build DOCUMENTATION (not in ALL target and only if Doxygen is found)
option(BUILD_DOC "Build the HTML documentation (with doxygen if available)." OFF)
/* ---------------------------------------------------------------------- */
const char* OPJ_CALLCONV opj_version(void) {
- return PACKAGE_VERSION;
+ return OPJ_PACKAGE_VERSION;
}
/* ---------------------------------------------------------------------- */
/* create config.h for CMake */
-#define PACKAGE_VERSION "@PACKAGE_VERSION@"
+#define OPJ_PACKAGE_VERSION "@PACKAGE_VERSION@"
#cmakedefine HAVE_INTTYPES_H @HAVE_INTTYPES_H@
#cmakedefine HAVE_MEMORY_H @HAVE_MEMORY_H@