git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35795
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#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