]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for HP-UX (at least version 11)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Oct 2005 16:48:49 +0000 (16:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 4 Oct 2005 16:48:49 +0000 (16:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/tiff/port.h

index 773d63a8a3b20e6e470ede6838f7cb517925927d..fa331243ec0d9e5b5d0751bbd50f39f671fd3117 100644 (file)
@@ -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 <sys/types.h>
 #define HOST_FILLORDER FILLORDER_LSB2MSB