From 587c26c5e3a66a5a825ea3220a9054ce4decc3aa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 4 Oct 2005 16:48:49 +0000 Subject: [PATCH] compilation fix for HP-UX (at least version 11) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/tiff/port.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/tiff/port.h b/src/tiff/port.h index 773d63a8a3..fa331243ec 100644 --- a/src/tiff/port.h +++ b/src/tiff/port.h @@ -15,6 +15,17 @@ extern "C" { #include "wx/setup.h" +/* + libtiff uses ulong_t and other things which are not defined in HP-UX headers + unless _INCLUDE_HPUX_SOURCE is defined and this, in turn, doesn't compile if + _INCLUDE_XOPEN_SOURCE is not defined, so define both of them (system headers + also use _INCLUDE_POSIX_SOURCE but it doesn't seem to be needed for now). + */ +#ifdef __hpux +#define _INCLUDE_XOPEN_SOURCE +#define _INCLUDE_HPUX_SOURCE +#endif + #include #define HOST_FILLORDER FILLORDER_LSB2MSB