From: Vadim Zeitlin Date: Wed, 16 Aug 2000 15:24:38 +0000 (+0000) Subject: added wxUsE_XPM_H_IN_PATH X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9b5ae11a398dd64fa745712456ebabbae972c733 added wxUsE_XPM_H_IN_PATH git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/xpmhand.cpp b/src/msw/xpmhand.cpp index 78459be100..7b0a898a59 100644 --- a/src/msw/xpmhand.cpp +++ b/src/msw/xpmhand.cpp @@ -35,7 +35,16 @@ #if wxUSE_XPM_IN_MSW #define FOR_MSW 1 - #include "../xpm/xpm.h" + + // allow the user to use the system-wide xpm.h by defining + // wxUSE_XPM_H_IN_PATH (and always use xpm.h in path if __WX_SETUP_H__ is + // defined which means that we use configure as it always add -I../xpm to + // the include path if needed) + #if !defined(__WX_SETUP_H__) && !defined(wxUSE_XPM_H_IN_PATH) + #include "../xpm/xpm.h" + #else + #include + #endif #endif #include "wx/xpmhand.h"