X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5b18b50bd7805c36dcd47dbc48e8f75d4973414..2fca5a00045426b4e59c14a575b2baa3628e3847:/src/msw/utils.cpp diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index 185d3ebb9e..d9fcbb0033 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -40,6 +40,12 @@ #include "wx/msw/private.h" // includes +#ifdef __GNUWIN32_OLD__ + // apparently we need to include winsock.h to get WSADATA and other stuff + // used in wxGetFullHostName() with the old mingw32 versions + #include +#endif + #include "wx/timer.h" #if !defined(__GNUWIN32__) && !defined(__WXWINE__) && !defined(__SALFORDC__) && !defined(__WXMICROWIN__) @@ -941,6 +947,15 @@ long wxGetFreeMemory() #endif } +unsigned long wxGetProcessId() +{ +#ifdef __WIN32__ + return ::GetCurrentProcessId(); +#else + return 0; +#endif +} + // Emit a beeeeeep void wxBell() {