]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use generic process callback for wxGTK/Motif/MGL which have their own versions...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Mar 2008 02:22:42 +0000 (02:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 16 Mar 2008 02:22:42 +0000 (02:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/unix/execute.h

index e8baeec132609e33b72613f90f36f22eae412da6..9c9ea40953a8f95d80f2949cd0d18e99f9120821 100644 (file)
 class WXDLLIMPEXP_FWD_BASE wxProcess;
 class wxStreamTempInputBuffer;
 
 class WXDLLIMPEXP_FWD_BASE wxProcess;
 class wxStreamTempInputBuffer;
 
-#if defined(__UNIX__)
+// some ports have toolkit-specific implementations of wxAddProcessCallback()
+// but by default we use a generic wxFDIOHandler-based mechanism under Unix
+#if defined(__UNIX__) && \
+    !(defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMGL__))
     #define wxHAS_GENERIC_PROCESS_CALLBACK 1
 #endif
 
     #define wxHAS_GENERIC_PROCESS_CALLBACK 1
 #endif