diff --git a/include/wx/defs.h b/include/wx/defs.h index 17aa3cd4d1..b850a396d0 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -224,8 +224,13 @@ #include "wx/setup.h" // just in case they were defined in setup.h +#ifdef PACKAGE #undef PACKAGE +#endif + +#ifdef VERSION #undef VERSION +#endif // this has to be done after including setup.h which might // define __HPUX__ 1 itself @@ -1808,7 +1813,7 @@ typedef void * WXLPCREATESTRUCT; typedef unsigned long WXMPARAM; typedef unsigned long WXMSGID; typedef void* WXRESULT; -typedef int (*WXFARPROC)(); +//typedef int (*WXFARPROC)(); // some windows handles not defined by PM typedef unsigned long HANDLE; typedef unsigned long HICON; diff --git a/src/common/filefn.cpp b/src/common/filefn.cpp index 4adda91470..947c3dfff7 100644 --- a/src/common/filefn.cpp +++ b/src/common/filefn.cpp @@ -99,7 +99,7 @@ #endif #ifdef __WINDOWS__ - #include "windows.h" + #include #endif // ----------------------------------------------------------------------------