[trunk] rename PACKAGE_VERSION to OPJ_PACKAGE_VERSION

This prevent conflicts with TIFF package which also defines PACKAGE_VERSION
This commit is contained in:
Mathieu Malaterre 2012-10-01 10:39:39 +00:00
parent 4466c31fc2
commit bf37be46b8
3 changed files with 5 additions and 5 deletions

View File

@ -165,6 +165,9 @@ CHECK_INCLUDE_FILE("string.h" HAVE_STRING_H)
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)
@ -199,9 +202,6 @@ if(BUILD_CODEC OR BUILD_MJ2)
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)

View File

@ -266,7 +266,7 @@ DllMain(HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
/* ---------------------------------------------------------------------- */
const char* OPJ_CALLCONV opj_version(void) {
return PACKAGE_VERSION;
return OPJ_PACKAGE_VERSION;
}
/* ---------------------------------------------------------------------- */

View File

@ -1,5 +1,5 @@
/* 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@