X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/550343399aa1355469ffed72c8cf84c732dcf98b..ae999b11ec671b5a12a30f24c0aa6b36978b3fd6:/include/wx/os2/private.h?ds=inline diff --git a/include/wx/os2/private.h b/include/wx/os2/private.h index aab13247a9..02a11b3ac5 100644 --- a/include/wx/os2/private.h +++ b/include/wx/os2/private.h @@ -26,13 +26,25 @@ #include #define I_NEED_OS2_H #include - #ifdef __cplusplus - extern "C" { + + // include this header from here for many of the GUI related code + #if wxUSE_GUI + extern "C" { + #include + } #endif - #include - #ifdef __cplusplus + + // provide Unix-like pipe() + #include + #include + #include + // Use ::DosCreatePipe or ::DosCreateNPipe under OS/2 + // for more see http://posix2.sourceforge.net/guide.html + inline int pipe( int WXUNUSED(filedes)[2] ) + { + wxFAIL_MSG(wxT("Implement first")); + return -1; } - #endif #endif #if defined (__EMX__) && !defined(USE_OS2_TOOLKIT_HEADERS) && !defined(HAVE_SPBCDATA)